Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1.  
  2. using System;
  3. using UnrealEngine.Runtime;
  4. using UnrealEngine.Engine;
  5.  
  6.  
  7. namespace XProject2Mono
  8. {
  9. public class TestActor : Actor
  10. {
  11. [UProperty(Category = "Static Mesh")]
  12. public Subobject<StaticMeshComponent> MeshComponent { get; set; }
  13.  
  14. // Constructor called when creating or loading an object
  15. protected TestActor(PostConstructInitializeProperties pcip)
  16. : base(pcip)
  17. {
  18. MeshComponent = pcip.CreateDefaultSubobject<StaticMeshComponent>(this, new Name("StaticMeshComponent0"));
  19. }
  20.  
  21. // Constructor for hot-reloading. UProperties will already be initialized, but any purely managed fields or data
  22. // will need to be set up
  23. protected TestActor(IntPtr nativeObject)
  24. : base(nativeObject)
  25. {
  26.  
  27. }
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement