Feel 6.1
The best way to improve your game's feel and make it extra juicy
Loading...
Searching...
No Matches
MoreMountains.Tools.MMVectorLabelsAttributeDrawer Class Reference
Inheritance diagram for MoreMountains.Tools.MMVectorLabelsAttributeDrawer:

Public Member Functions

override float GetPropertyHeight (SerializedProperty property, GUIContent guiContent)

Protected Member Functions

void DrawFieldsWithProperties (Rect rect, SerializedProperty[] properties, string mainLabel, MMVectorAttribute vectors, GUIContent originalGuiContent)
T[] DrawFields< T > (Rect rect, T[] vector, string mainLabel, System.Func< Rect, GUIContent, T, T > fieldDrawer, MMVectorAttribute vectors, GUIContent originalGuiContent)

Static Protected Attributes

static readonly GUIContent[] originalLabels = new GUIContent[] { new GUIContent("X"), new GUIContent("Y"), new GUIContent("Z"), new GUIContent("W") }
const int padding = 375

Member Function Documentation

◆ DrawFields< T >()

T[] MoreMountains.Tools.MMVectorLabelsAttributeDrawer.DrawFields< T > ( Rect rect,
T[] vector,
string mainLabel,
System.Func< Rect, GUIContent, T, T > fieldDrawer,
MMVectorAttribute vectors,
GUIContent originalGuiContent )
protected

◆ DrawFieldsWithProperties()

void MoreMountains.Tools.MMVectorLabelsAttributeDrawer.DrawFieldsWithProperties ( Rect rect,
SerializedProperty[] properties,
string mainLabel,
MMVectorAttribute vectors,
GUIContent originalGuiContent )
protected

◆ GetPropertyHeight()

override float MoreMountains.Tools.MMVectorLabelsAttributeDrawer.GetPropertyHeight ( SerializedProperty property,
GUIContent guiContent )

Member Data Documentation

◆ originalLabels

readonly GUIContent [] MoreMountains.Tools.MMVectorLabelsAttributeDrawer.originalLabels = new GUIContent[] { new GUIContent("X"), new GUIContent("Y"), new GUIContent("Z"), new GUIContent("W") }
staticprotected

◆ padding

const int MoreMountains.Tools.MMVectorLabelsAttributeDrawer.padding = 375
staticprotected

The documentation for this class was generated from the following file: