Class SpawnEntryPropertyDrawer
Custom property drawer for UnitySpawnEntry.
Replaces the plain string field for spawnPointId with a dropdown
populated from the stage prefab's spawn points (editor-only).
Falls back to a normal string field when the stage prefab cannot be resolved.
Inheritance
SpawnEntryPropertyDrawer
Assembly: Serenity.UnityWave.Editor.dll
Syntax
public class SpawnEntryPropertyDrawer : PropertyDrawer
Constructors
SpawnEntryPropertyDrawer()
Declaration
public SpawnEntryPropertyDrawer()
Fields
HelpBoxHeight
Declaration
protected const float HelpBoxHeight = 38
Field Value
Spacing
Declaration
protected const float Spacing = 2
Field Value
Methods
DrawSpawnPointId(ref Rect, SerializedProperty, SerializedProperty)
Declaration
protected void DrawSpawnPointId(ref Rect rect, SerializedProperty spawnPointIdProp, SerializedProperty parentProperty)
Parameters
| Type |
Name |
Description |
| Rect |
rect |
|
| SerializedProperty |
spawnPointIdProp |
|
| SerializedProperty |
parentProperty |
|
GetPropertyHeight(SerializedProperty, GUIContent)
Declaration
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
Parameters
| Type |
Name |
Description |
| SerializedProperty |
property |
|
| GUIContent |
label |
|
Returns
OnGUI(Rect, SerializedProperty, GUIContent)
Declaration
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Parameters
| Type |
Name |
Description |
| Rect |
position |
|
| SerializedProperty |
property |
|
| GUIContent |
label |
|