bevy_scriptum/assets/examples/js/current_entity.js
Jaroslaw Konik 36cc907f0e
Some checks failed
Book / test (pull_request) Has been cancelled
Rust / build (3.4.4, map[os:ubuntu-latest]) (pull_request) Has been cancelled
Implement JavaScript runtime
2026-06-04 23:50:53 +02:00

7 lines
230 B
JavaScript

// entity is a global variable that is set to the entity that is currently being
// processed, it is automatically available in all scripts.
// get name of the entity
get_name(entity).and_then(function (name) {
print(name);
});