Hey,
I somehow can’t use an Enum in my Behaviour, although I’ve seen you guys making use of it in other components. I probably miss something obvious here?
export enum Zones {
START = 0,
NEWS = 1,
SOLUTIONS = 2,
MACHINE = 3,
}
// Keep list of all zones and provide finder
export class ZoneController extends Behaviour {
@serializable(Object3D)
public avatar:GameObject|null = null;
@serializable(Object3D)
public vrCamera:GameObject|null = null;
@serializable()
public zone: Zones = Zones.NEWS;
Results in:
// NEEDLE_CODEGEN_START
// auto generated code - do not edit directly
#pragma warning disable
namespace Needle.Typescript.GeneratedComponents
{
public partial class ZoneController : UnityEngine.MonoBehaviour
{
public UnityEngine.GameObject @avatar;
public UnityEngine.GameObject @vrCamera;
// public Zones @zone; → Could not resolve C# type
}
}
// NEEDLE_CODEGEN_END
Any ideas on that?
by user 827095900392259645