mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-08 18:55:07 +00:00
Fixed a bug where checkbox properties wouldn't load properly when selected
This commit is contained in:
parent
6bf5be2e5b
commit
555a2d6bc0
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ namespace HeavenStudio.Editor
|
||||||
}
|
}
|
||||||
else if(type is bool)
|
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
|
toggle.onValueChanged.AddListener(delegate
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue