Fixed a bug where checkbox properties wouldn't load properly when selected
This commit is contained in:
parent
94b688dbc6
commit
163d414606
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue