2026-05-20 무기습득

This commit is contained in:
2026-05-20 10:57:44 +09:00
parent 4a0b07701e
commit 3769ff87bf
289 changed files with 19793 additions and 14 deletions

View File

@@ -0,0 +1,46 @@
using UnityEditor;
using UnityEngine;
namespace HighlightPlus {
[CustomEditor(typeof(HighlightEffectBlocker))]
public class HighlightEffectBlockerEditor : Editor {
SerializedProperty include, layerMask, blockOutlineAndGlow, blockOverlay, nameFilter, useRegEx;
HighlightEffectBlocker hb;
void OnEnable() {
include = serializedObject.FindProperty("include");
layerMask = serializedObject.FindProperty("layerMask");
nameFilter = serializedObject.FindProperty("nameFilter");
useRegEx = serializedObject.FindProperty("useRegEx");
blockOutlineAndGlow = serializedObject.FindProperty("blockOutlineAndGlow");
blockOverlay = serializedObject.FindProperty("blockOverlay");
hb = (HighlightEffectBlocker)target;
}
public override void OnInspectorGUI() {
serializedObject.Update();
EditorGUILayout.PropertyField(include);
if (include.intValue == (int)BlockerTargetOptions.LayerInChildren) {
EditorGUI.indentLevel++;
EditorGUILayout.PropertyField(layerMask);
EditorGUI.indentLevel--;
}
if (include.intValue != (int)BlockerTargetOptions.OnlyThisObject) {
EditorGUI.indentLevel++;
EditorGUILayout.PropertyField(nameFilter, new GUIContent("Object Name Filter"));
EditorGUILayout.PropertyField(useRegEx, new GUIContent("Use Regular Expressions"));
EditorGUI.indentLevel--;
}
EditorGUILayout.PropertyField(blockOutlineAndGlow);
EditorGUILayout.PropertyField(blockOverlay);
if (serializedObject.ApplyModifiedProperties()) {
hb.Refresh();
}
}
}
}