bevy_scriptum/assets/examples/entity_variable.rhai
2023-06-21 16:22:12 +02:00

3 lines
190 B
Text

// entity is a global variable that is set to the entity that is currently being processed,
// it is automatically available in all scripts
print("Current entity index: " + entity.index());