Page 1 of 1

scene.createGlobalVariableValue

Posted: Fri Mar 11, 2011 5:39 pm
by martin_st
Hello RF fellows,

what is wrong, when I try to register global variables in the following way with a command plugin:

Code: Select all

Scene& scene =  AppManager::instance()->getCurrentScene();
scene.createGlobalVariableValue<int>("Name");
scene.setGlobalVariableValue<int>("Name",10);
When I try this I get a warning
warning C4512: 'nextlimit::NL_RefType<TYPE_CLASS>': Zuweisungsoperator konnte nicht generiert werden
1> with
1> [
1> TYPE_CLASS=int
1> ]
this means something like "assignement operator couldn't be generated"

Thanks,
Martin

Re: scene.createGlobalVariableValue

Posted: Mon Mar 14, 2011 12:24 pm
by atena
Thank you, we will have a look at it. I think this should work even if you get that warning message.