mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 08:18:49 -05:00
Remove redundant Initialize method
This commit is contained in:
parent
2b389d9323
commit
9e7bc4cf56
@ -53,7 +53,6 @@ namespace TriInspector.Editor.Integrations.Odin
|
||||
base.Initialize();
|
||||
|
||||
_propertyTree = new TriPropertyTreeForOdin<T>(ValueEntry);
|
||||
_propertyTree.Initialize();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
@ -51,7 +51,6 @@ namespace TriInspector.Editor.Integrations.Odin
|
||||
protected override void Initialize()
|
||||
{
|
||||
_propertyTree = new TriPropertyTreeForOdin<T>(ValueEntry);
|
||||
_propertyTree.Initialize();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
@ -44,7 +44,6 @@ namespace TriInspector.Editor.Integrations.Odin
|
||||
|
||||
var serializedObject = Property.Tree.UnitySerializedObject;
|
||||
_propertyTree = new TriPropertyTreeForSerializedObject(serializedObject);
|
||||
_propertyTree.Initialize();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
@ -40,7 +40,6 @@ namespace TriInspector.Editor.Integrations.Odin
|
||||
{
|
||||
_serializedObject = new SerializedObject(ValueEntry.SmartValue);
|
||||
_propertyTree = new TriPropertyTreeForSerializedObject(_serializedObject);
|
||||
_propertyTree.Initialize();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
@ -33,7 +33,6 @@ namespace TriInspector
|
||||
}
|
||||
|
||||
_inspector = new TriPropertyTreeForSerializedObject(serializedObject);
|
||||
_inspector.Initialize();
|
||||
}
|
||||
|
||||
serializedObject.UpdateIfRequiredOrScript();
|
||||
|
@ -17,14 +17,8 @@ namespace TriInspector
|
||||
public int TargetsCount { get; protected set; }
|
||||
public bool TargetIsPersistent { get; protected set; }
|
||||
|
||||
public bool ValidationRequired { get; private set; }
|
||||
public bool RepaintRequired { get; private set; }
|
||||
|
||||
public void Initialize()
|
||||
{
|
||||
Update();
|
||||
RunValidation();
|
||||
}
|
||||
public bool ValidationRequired { get; private set; } = true;
|
||||
public bool RepaintRequired { get; private set; } = true;
|
||||
|
||||
public virtual void Dispose()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user