mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 00:08:51 -05:00
Skip hide and disable processors on array elements by default
This commit is contained in:
parent
191d5babe3
commit
ac647eb85a
@ -1,4 +1,5 @@
|
|||||||
using TriInspector;
|
using System.Collections.Generic;
|
||||||
|
using TriInspector;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class Conditionals_ShowIfSample : ScriptableObject
|
public class Conditionals_ShowIfSample : ScriptableObject
|
||||||
@ -11,7 +12,7 @@ public class Conditionals_ShowIfSample : ScriptableObject
|
|||||||
public Vector3 showWhenMaterialIsNull;
|
public Vector3 showWhenMaterialIsNull;
|
||||||
|
|
||||||
[ShowIf(nameof(toggle))]
|
[ShowIf(nameof(toggle))]
|
||||||
public Vector3 showWhenToggleIsTrue;
|
public List<Vector3> showWhenToggleIsTrue;
|
||||||
|
|
||||||
[ShowIf(nameof(toggle), false)]
|
[ShowIf(nameof(toggle), false)]
|
||||||
public Vector3 showWhenToggleIsFalse;
|
public Vector3 showWhenToggleIsFalse;
|
||||||
|
@ -50,6 +50,7 @@ namespace TriInspector
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Type ProcessorType { get; }
|
public Type ProcessorType { get; }
|
||||||
|
public bool ApplyOnArrayElement { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
|
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
|
||||||
@ -61,6 +62,7 @@ namespace TriInspector
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Type ProcessorType { get; }
|
public Type ProcessorType { get; }
|
||||||
|
public bool ApplyOnArrayElement { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
|
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
|
||||||
|
@ -247,7 +247,7 @@ namespace TriInspector.Utilities
|
|||||||
select CreateInstance<TriPropertyHideProcessor>(
|
select CreateInstance<TriPropertyHideProcessor>(
|
||||||
processor.ProcessorType, valueType, it =>
|
processor.ProcessorType, valueType, it =>
|
||||||
{
|
{
|
||||||
//
|
it.ApplyOnArrayElement = processor.ApplyOnArrayElement;
|
||||||
it.RawAttribute = attribute;
|
it.RawAttribute = attribute;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -262,7 +262,7 @@ namespace TriInspector.Utilities
|
|||||||
select CreateInstance<TriPropertyDisableProcessor>(
|
select CreateInstance<TriPropertyDisableProcessor>(
|
||||||
processor.ProcessorType, valueType, it =>
|
processor.ProcessorType, valueType, it =>
|
||||||
{
|
{
|
||||||
//
|
it.ApplyOnArrayElement = processor.ApplyOnArrayElement;
|
||||||
it.RawAttribute = attribute;
|
it.RawAttribute = attribute;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user