Advertisement
Guest User

Untitled

a guest
Aug 8th, 2014
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. // Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
  2.  
  3. #pragma once
  4.  
  5. #include "MyPluginObject.generated.h"
  6.  
  7.  
  8. /**
  9.  * Example UStruct declared in a plugin module
  10.  */
  11. USTRUCT()
  12. struct FMyPluginStruct
  13. {
  14.     GENERATED_USTRUCT_BODY()
  15.  
  16.     UPROPERTY()
  17.     FString TestString;
  18. };
  19.  
  20.  
  21. /**
  22.  * Example of declaring a UObject in a plugin module
  23.  */
  24. UCLASS()
  25. class UMyPluginObject : public UObject
  26. {
  27.     GENERATED_UCLASS_BODY()
  28.  
  29. public:
  30.  
  31. private:
  32.  
  33.     UPROPERTY()
  34.     FMyPluginStruct MyStruct;
  35.  
  36. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement