Hi,
Is the best way of adding attributes to an entity to create a script or is there another way?
My example is this: I want to mark only certain entities in a scene as being able to be grabbed. I thought about simply adding a place holder script called “grabable” which I would add to entities and then test for it using
if (entity.script.grabable) {
//then whatever
}
is that the best way?