Page MenuHomeFeedback Tracker

GetClassVar function doesn't work with float
Closed, ResolvedPublic

Description

Hello,

EnScript::GetClassVar function doesn't works with float.
However, EnScript::SetClassVar function works fine with float, but return false.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Engine
Steps To Reproduce

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.

Event Timeline

NiiRoZz created this task.Apr 20 2020, 11:01 PM
Arkali added a subscriber: Arkali.Apr 20 2020, 11:01 PM
Geez changed the task status from New to Assigned.Apr 21 2020, 11:00 AM
Geez changed the task status from Assigned to Acknowledged.Apr 21 2020, 12:54 PM
Geez closed this task as Resolved.Apr 23 2020, 10:50 AM
Geez claimed this task.
Geez added a subscriber: Geez.

Hello NiiRoZz.
We have resolved the issue internally and it should be fixed in the next update.
Regards,
Geez