Archive 17/01/2023.

A question regarding ownership of member variables in scripted classes

Leith

I’m looking for a way to leverage the existing mechanisms in Urho, rather than reinvent the wheel.

I understand that this means I can read public attributes of script classes from c++, by querying same named attributes of the ScriptInstance component. My question is: if I write to these attributes from C++, will these changes be readable in Angelscript?

Leith

I found one option.
Node variables can be accessed from both sides of the language barrier - ownership rests with c++ and scripts can access, this will do.

I am still not sure whether attributes generated from script to c++ are writeable from c++ and readable back in script, but I am really no longer worried. Node vars will do what I want - cross the border.