[Mono-ue] Enum
Michael Hutchinson
m.j.hutchinson at gmail.com
Sat Jan 10 20:40:40 UTC 2015
User-defined UEnums are not supported in the current release, but this
has been implemented and will be in the next release.
- m
On 10 January 2015 at 10:19, Ryan Burnham <nitro52 at iinet.net.au> wrote:
> I’m not sure, I haven’t tried exposing an enum to UE yet. It looks like that
> should work. When I try adding it to my Player Character the build fails
> with a normal enum saying it’s not a valid Unreal Class and if you declare
> it as a byte it crashes the UE.
>
> CC’ed the Mono UE list. Does anyone else know? Is this a bug?
>
>
>
>
>
> From: Ahmet Faruk GÜNTÜRKÜN [mailto:vadsl05 at gmail.com]
> Sent: Saturday, 10 January 2015 9:12 PM
> To: nitro52 at iinet.net.au
> Subject: Enum
>
>
>
> Hi I need your help :)
>
> I wrote :
>
> [UEnum]
>
> public enum AttributeNames// : uint
>
> {
>
> HealthPoint = 0,
>
> ManaPoint = 1,
>
> Strength = 2,
>
> Agility = 3,
>
> Intelligence = 4,
>
> COUNT = 5,
>
> };
>
> [UProperty, BlueprintVisible, EditorVisible]
>
> [Category ("BaseCharacter")]
>
> public AttributeNames AttributeName { get; set; }
>
> There is error say me enum have to be byte. When I do byte my enum. Game
> editor is crashed. How can I use enum ? Thanks a lot :) Have a nice day ...
>
>
> _______________________________________________
> Mono-ue mailing list
> Mono-ue at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-ue
>
--
Michael Hutchinson ~ https://mhut.ch
More information about the Mono-ue
mailing list