Class UnlockDefDrawer

Namespace
SurvivorsMaker.Editor
Assembly
SurvivorsMaker.Editor.dll

Unlock entries pick their target and character parameter by id from the containing content.

[CustomPropertyDrawer(typeof(UnlockDef))]
public sealed class UnlockDefDrawer : PropertyDrawer
Inheritance
GUIDrawer
PropertyDrawer
UnlockDefDrawer
Inherited Members
PropertyDrawer.OnGUI(Rect, SerializedProperty, GUIContent)
PropertyDrawer.GetPropertyHeight(SerializedProperty, GUIContent)
PropertyDrawer.CanCacheInspectorGUI(SerializedProperty)
PropertyDrawer.attribute
PropertyDrawer.fieldInfo
PropertyDrawer.preferredLabel

Constructors

UnlockDefDrawer()

public UnlockDefDrawer()

Methods

CreatePropertyGUI(SerializedProperty)

public override VisualElement CreatePropertyGUI(SerializedProperty property)

Parameters

property SerializedProperty

Returns

VisualElement

TargetIds(ContentAsset, UnlockTarget)

public static List<string> TargetIds(ContentAsset content, UnlockTarget target)

Parameters

content ContentAsset
target UnlockTarget

Returns

List<string>