docs.unity3d.com
    显示 / 隐藏目录

    Class ScaleVisualDrawer

    Inheritance
    Object
    GUIDrawer
    PropertyDrawer
    ScaleVisualDrawer
    Inherited Members
    PropertyDrawer.CreatePropertyGUI(SerializedProperty)
    PropertyDrawer.CanCacheInspectorGUI(SerializedProperty)
    PropertyDrawer.attribute
    PropertyDrawer.fieldInfo
    Namespace: Unity.MARS
    Syntax
    [CustomPropertyDrawer(typeof(MARSWorldScaleModule.ScaleVisual))]
    public class ScaleVisualDrawer : PropertyDrawer

    Methods

    GetPropertyHeight(SerializedProperty, GUIContent)

    Declaration
    public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
    Parameters
    Type Name Description
    SerializedProperty property
    GUIContent label
    Returns
    Type Description
    Single
    Overrides
    PropertyDrawer.GetPropertyHeight(SerializedProperty, GUIContent)

    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
    Overrides
    PropertyDrawer.OnGUI(Rect, SerializedProperty, GUIContent)
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)