void Posted August 25, 2010 Share Posted August 25, 2010 How i can access to 'nodes' variable from C code? namespace MyNamespace { ... Node nodes[]; .. } Link to comment
frustum Posted August 25, 2010 Share Posted August 25, 2010 'nodes' is an array and you can pass it to c++ function. Look through samples/Api/Arrays/ sample. Link to comment
void Posted August 26, 2010 Author Share Posted August 26, 2010 'nodes' is an array and you can pass it to c++ function. Look through samples/Api/Arrays/ sample. Can one working only trough Interpreter class instance get access to some unigine script variable wich is not passed as argument? Need any sample about usage: class Interpreter { .. Variable getVariable(const char *name) const; Vector<Variable> &getArrayVector(int id) const; Map<Variable,Variable> &getArrayMap(int id) const; .. }; Link to comment
frustum Posted August 27, 2010 Share Posted August 27, 2010 I have added Interpter::getArrayID(const char*) function for internal arrays. You can use this ID as argument for Interpter::getArrayVector() and Interpter::getArrayMap() functions. Link to comment
Recommended Posts