For example:
Code: Select all
user.setVariable(new SFSUserVariable("face_res", 1.3f,false));
Looking at the api docs the constructor is:
Code: Select all
SFSUserVariable(String name, Object value, boolean isHidden)
The above example should set "face_res" to a public variable but when i check the zone monitor it is set to hidden.
I thought perhaps it selected the wrong constructor but i've tried all sorts:
Code: Select all
user.setVariable(new SFSUserVariable("face_res",(Object) 1.3f,false));
user.setVariable(new SFSUserVariable("face_res",(Double) 1.3f,false));
user.setVariable(new SFSUserVariable("face_res",new Double(1.3),false));
even
Code: Select all
SFSUserVariable u = new SFSUserVariable.newFromStringLiteral("face_res", "DOUBLE", "1.3");
u.setHidden(false);
user.setVariable(u);
etc...
Have i've missed anything??