UnityEditor.EditorGUILayout.LayerMaskField C# (CSharp) Method

LayerMaskField() static private method

static private LayerMaskField ( UnityEditor.SerializedProperty property, GUIContent label ) : void
property UnityEditor.SerializedProperty
label UnityEngine.GUIContent
return void
        internal static void LayerMaskField(SerializedProperty property, GUIContent label, params GUILayoutOption[] options)
        {
            Rect position = s_LastRect = GetControlRect(true, 16f, options);
            EditorGUI.LayerMaskField(position, property, label);
        }

Usage Example

示例#1
0
        private static void CreatePointTools()
        {
            LineRendererEditor.inputMode = (LineRendererEditor.InputMode)EditorGUILayout.EnumPopup(s_Styles.inputMode, LineRendererEditor.inputMode);
            if (LineRendererEditor.inputMode == LineRendererEditor.InputMode.PhysicsRaycast)
            {
                LineRendererEditor.raycastMask = EditorGUILayout.LayerMaskField(LineRendererEditor.raycastMask, s_Styles.layerMask);
            }

            LineRendererEditor.createPointSeparation = EditorGUILayout.FloatField(s_Styles.pointSeparation, LineRendererEditor.createPointSeparation);
            LineRendererEditor.creationOffset        = EditorGUILayout.FloatField(s_Styles.normalOffset, LineRendererEditor.creationOffset);
        }
All Usage Examples Of UnityEditor.EditorGUILayout::LayerMaskField