mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 01:48:07 +08:00
Finished argument inputs for Method/Props, some UI cleanups and fixes
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user