Finished argument inputs for Method/Props, some UI cleanups and fixes

This commit is contained in:
sinaioutlander committed 2020-11-14 19:51:16 +11:00
1 parent 755eae293e
commit 2819ced303
18 files changed
+613 -183

No files matched your search

@@ -24,14 +24,18 @@ namespace UnityExplorer.Inspectors.Reflection
{
if (valueType == null && value == null)
{
ExplorerCore.LogWarning("CacheObjectBase: Trying to init with no default value or valueType!");
ExplorerCore.Log(Environment.StackTrace);
return;
}
// TEMP
IValue = new InteractiveValue
// temp (havent made rest of InteractiveValue classes yet, just using base class always)
valueType = ReflectionHelpers.GetActualType(value) ?? valueType;
IValue = new InteractiveValue(valueType)
{
OwnerCacheObject = this,
ValueType = ReflectionHelpers.GetActualType(value) ?? valueType,
OwnerCacheObject = this
};
UpdateValue();
}
@@ -45,6 +49,7 @@ namespace UnityExplorer.Inspectors.Reflection
}
m_mainContent.SetActive(true);
m_mainContent.transform.SetAsLastSibling();
}
public virtual void Disable()
@@ -54,7 +59,7 @@ namespace UnityExplorer.Inspectors.Reflection
public virtual void UpdateValue()
{
IValue.UpdateValue();
IValue.OnValueUpdated();
}
public virtual void SetValue() => throw new NotImplementedException();