[Mono-ue] Missing Actor properties when using a C# Actor

Eugene Tchoukhrov ujen at vicogamestudio.com
Tue Nov 4 08:30:52 UTC 2014


I noticed that the basic Actor properties are not showing up when placing an
Actor made in C#:

http://i.imgur.com/QkzHP4o.png

 

Here is the super basic code:

// Fill out your copyright notice in the Description page of Project
Settings.
using System;
using UnrealEngine.Runtime;
using UnrealEngine.Engine;


namespace MonoPluginTest1Mono
{
    [UClass]
    public class SpinActor : Actor
    {
        // Constructor called when creating or loading an object
        protected SpinActor(PostConstructInitializeProperties pcip)
            : base(pcip)
        {
        }

        // Constructor for hot-reloading. UProperties will already be
initialized, but any purely managed fields or data
        // will need to be set up
        protected SpinActor(IntPtr nativeObject)
            : base(nativeObject)
        {

        }

        protected override void ReceiveTick (float deltaSeconds)
        {
            base.ReceiveTick (deltaSeconds);

            AddActorLocalRotation(new Rotator(0, 5, 0));
        }
    }
}

 

 

Am I missing something?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-ue/attachments/20141104/f1505a5c/attachment.html>


More information about the Mono-ue mailing list