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.
Shows the character the entry names, read-only, and keeps it in step with the actor: assigning an actor
stores the Id of the character that prefab belongs to, the identity a build resolves the entry by.
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 |
|