Hello,
EnScript::GetClassVar function doesn't works with float.
However, EnScript::SetClassVar function works fine with float, but return false.
Hello,
EnScript::GetClassVar function doesn't works with float.
However, EnScript::SetClassVar function works fine with float, but return false.
This is the class :
class TestClassRead { float testValue = 10.0; }
This is the code should be executed to test it. Like on a key
TestClassRead test = new TestClassRead; Print("test.testValue : " + test.testValue); float write = 50.0; if (EnScript.SetClassVar( test, "testValue", 0, write )) { Print("Can write write : " + write); } else { Print("Can't write"); } Print("test.testValue : " + test.testValue); float read = 0.0; if (EnScript.GetClassVar( test, "testValue", 0, read )) { Print("Can read read : " + read); } else { Print("Can't read"); } Print("test.testValue : " + test.testValue); Print("read : " + read);
The result in script log is
SCRIPT : test.testValue : 10 SCRIPT : Can't write SCRIPT : test.testValue : 50 SCRIPT : Can't read SCRIPT : test.testValue : 50 SCRIPT : read : 0
He is saying me he can't write but he wrote correctly the 50.
And he can't read the value correctly.
Hello NiiRoZz.
We have resolved the issue internally and it should be fixed in the next update.
Regards,
Geez