Stores a @reference to an AngelScript object in the entity custom data map.
{ MyObject obj; obj.foo = 10; entity.SetObject("obj", @obj); } { MyObject@ obj; entity.GetObject("obj", @obj); print(obj.foo); }
Output:
10