Fixed a bug where checkbox properties wouldn't load properly when selected

This commit is contained in:
Pengu123 2022-05-03 17:26:08 +02:00
parent 6bf5be2e5b
commit 555a2d6bc0

View file

@ -92,7 +92,7 @@ namespace HeavenStudio.Editor
}
else if(type is bool)
{
toggle.isOn = (bool)type;
toggle.isOn = System.Convert.ToBoolean(parameterManager.entity[propertyName]); // ' (bool)type ' always results in false
toggle.onValueChanged.AddListener(delegate
{