Skip to content

ProbabilityCollectionPropertyDrawer

Namespace: SideXP.Core.EditorOnly | Inherits from: PropertyDrawer

public class ProbabilityCollectionPropertyDrawer : PropertyDrawer

Base custom property drawer for ProbabilityCollection fields.

Fields

MinProbability

public const float MinProbability = 0

MaxProbability

public const float MaxProbability = 100

Methods

OnGUI(Rect, SerializedProperty, GUIContent)

public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)

Inherited documentation.

GetPropertyHeight(SerializedProperty, GUIContent)

public override float GetPropertyHeight(SerializedProperty property, GUIContent label)

Inherited documentation.