Class "EntityPtr"⚓︎
Info
This class can be accessed by using its constructor:
Example Code
1 |
|
Constructors⚓︎
Entity·Ptr ()⚓︎
const EntityPtr EntityPtr ( Entity )⚓︎
The constructor is a global function. For example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
Functions⚓︎
Set·Reference ()⚓︎
void SetReference ( Entity ref )⚓︎
Variables⚓︎
Ref⚓︎
Entity Ref⚓︎
This is set to nil
automatically if the Entity this was previously referring to no longer exists. This is useful to safely store a reference to an Entity in something like a table, as otherwise there can be unexpected behavior if the Entity is stored directly (e.g. crashes, variable can start referring to a different entity).
Last update:
March 20, 2025