Enum connect to entities?


#1

Ok so I’m trying to do enum’s that connect to the entities ingame anyway to do this?


#2

What do you mean by connect?


#3

like the enum connects with an entity name ball for exp
I want the enum to say something likeenum: [ {'entity':ball},


#4

Not 100% sure what you are looking to do. Sounds like you want an enum option in the editor to be able to reference an entity in the scene? If that’s the case, you can’t.


#5

oh


#6

Closest alternative is an array of entities and an extra attribute to pick the index?


#7

Ok I could try that


#8

I’m not sure what advantage this mapping would give you give over just directly referencing the entity in the scene editor