logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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
    object
    SpawnEntryPropertyDrawer
    Namespace: Serenity.Wave.Editor
    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
    Type Description
    float

    Spacing

    Declaration
    protected const float Spacing = 2
    Field Value
    Type Description
    float

    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
    Type Description
    float

    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
    In this article
    © 2026 Serenity. All Rights Reserved