heapcleaner

Three UObject

Jun 11th, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.54 KB | None | 0 0
  1. UCLASS(Blueprintable)
  2. class PACZ_API UTestObject : public UDataAsset
  3. {
  4.     GENERATED_BODY()
  5. public:
  6.     /** Constructor. */
  7.     UTestObject(const FObjectInitializer& ObjectInitializer);
  8.    
  9.     /** Custom Property, Foo. */
  10.     UPROPERTY( EditAnywhere, BlueprintReadWrite, Category = "Test" )
  11.     int32 Foo;
  12.  
  13.     /** PostInitProperties override. */
  14.     virtual void PostInitProperties() override;
  15.  
  16.     /** PostLoad override. */  
  17.     virtual void PostLoad() override;    
  18. };
  19.  
  20. UCLASS(Blueprintable, meta=(BlueprintSpawnableComponent))
  21. class PACZ_API UTestComponent : public UStaticMeshComponent
  22. {
  23.     GENERATED_BODY()
  24. public:
  25.     /** Constructor. */
  26.     UTestComponent(const FObjectInitializer& ObjectInitializer);
  27.    
  28.     /** Custom Property, Foo. */
  29.     UPROPERTY( EditAnywhere, BlueprintReadWrite, Category = "Test" )
  30.     int32 Foo;
  31.    
  32.     /** PostInitProperties override. */
  33.     virtual void PostInitProperties() override;
  34.  
  35.     /** PostLoad override. */      
  36.     virtual void PostLoad() override;
  37.    
  38. };
  39.  
  40. UCLASS(Blueprintable)
  41. class PACZ_API ATestActor: public AActor
  42. {
  43.     GENERATED_BODY()
  44. public:
  45.     /** Constructor. */
  46.     ATestActor(const FObjectInitializer& ObjectInitializer);   
  47.  
  48.     /** Custom Property, Foo. */
  49.     UPROPERTY( EditAnywhere, BlueprintReadWrite, Category = "TestObject" )
  50.     int32 Foo;
  51.  
  52.     /** A custom component. */
  53.     UPROPERTY( VisibleAnywhere, Instanced, Category = "Test" )
  54.     UTestComponent* TestComponent;    
  55.  
  56.     /** PostInitProperties override. */
  57.     virtual void PostInitProperties() override;
  58.  
  59.     /** PostLoad override. */      
  60.     virtual void PostLoad() override;
  61. };
Advertisement
Add Comment
Please, Sign In to add comment