Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using UnrealEngine.Runtime;
- using UnrealEngine.Engine;
- namespace XProject2Mono
- {
- public class TestActor : Actor
- {
- [UProperty(Category = "Static Mesh")]
- public Subobject<StaticMeshComponent> MeshComponent { get; set; }
- // Constructor called when creating or loading an object
- protected TestActor(PostConstructInitializeProperties pcip)
- : base(pcip)
- {
- MeshComponent = pcip.CreateDefaultSubobject<StaticMeshComponent>(this, new Name("StaticMeshComponent0"));
- }
- // Constructor for hot-reloading. UProperties will already be initialized, but any purely managed fields or data
- // will need to be set up
- protected TestActor(IntPtr nativeObject)
- : base(nativeObject)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement