RenderingLayerMaskField
Makes a layer selection field.
Read time 7 minutesLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
RenderingLayerMaskField(string, uint, GUILayoutOption[])
Makes a layer selection field.
public static uint RenderingLayerMaskField(string label, uint layers, params GUILayoutOption[] options)
Parameters
Optional label in front of the field.
Value which represents RenderingLayerMask.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the .
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
styleAdditional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
Type | Description |
|---|---|
| uint | The Rendering Layer selected by the User and returned as uint. |
RenderingLayerMaskField(string, uint, GUIStyle, GUILayoutOption[])
Makes a layer selection field.
public static uint RenderingLayerMaskField(string label, uint layers, GUIStyle style, params GUILayoutOption[] options)
Parameters
Optional label in front of the field.
Value which represents RenderingLayerMask.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the .
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
styleAdditional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
Type | Description |
|---|---|
| uint | The Rendering Layer selected by the User and returned as uint. |
RenderingLayerMaskField(GUIContent, uint, GUILayoutOption[])
Makes a layer selection field.
public static uint RenderingLayerMaskField(GUIContent label, uint layers, params GUILayoutOption[] options)
Parameters
Optional label in front of the field.
Value which represents RenderingLayerMask.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the .
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
styleAdditional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
Type | Description |
|---|---|
| uint | The Rendering Layer selected by the User and returned as uint. |
RenderingLayerMaskField(string, RenderingLayerMask, GUILayoutOption[])
Makes a layer selection field.
public static RenderingLayerMask RenderingLayerMaskField(string label, RenderingLayerMask layers, params GUILayoutOption[] options)
Parameters
Optional label in front of the field.
The layer shown in the field.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the .
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
styleAdditional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
Type | Description |
|---|---|
| RenderingLayerMask | The Rendering Layer selected by the User. |
RenderingLayerMaskField(string, RenderingLayerMask, GUIStyle, GUILayoutOption[])
Makes a layer selection field.
public static RenderingLayerMask RenderingLayerMaskField(string label, RenderingLayerMask layers, GUIStyle style, params GUILayoutOption[] options)
Parameters
Optional label in front of the field.
The layer shown in the field.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the .
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
styleAdditional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
Type | Description |
|---|---|
| RenderingLayerMask | The Rendering Layer selected by the User. |
RenderingLayerMaskField(GUIContent, RenderingLayerMask, GUILayoutOption[])
Makes a layer selection field.
public static RenderingLayerMask RenderingLayerMaskField(GUIContent label, RenderingLayerMask layers, params GUILayoutOption[] options)
Parameters
Optional label in front of the field.
The layer shown in the field.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the .
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
styleAdditional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
Type | Description |
|---|---|
| RenderingLayerMask | The Rendering Layer selected by the User. |
RenderingLayerMaskField(GUIContent, uint, GUIStyle, GUILayoutOption[])
Makes a layer selection field.
public static uint RenderingLayerMaskField(GUIContent label, uint layers, GUIStyle style, params GUILayoutOption[] options)
Parameters
Optional label in front of the field.
Value which represents RenderingLayerMask.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the .
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
styleAdditional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
Type | Description |
|---|---|
| uint | The Rendering Layer selected by the User and returned as uint. |
RenderingLayerMaskField(GUIContent, RenderingLayerMask, GUIStyle, GUILayoutOption[])
Makes a layer selection field.
public static RenderingLayerMask RenderingLayerMaskField(GUIContent label, RenderingLayerMask layers, GUIStyle style, params GUILayoutOption[] options)
Parameters
Optional label in front of the field.
The layer shown in the field.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the .
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
styleAdditional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
Type | Description |
|---|---|
| RenderingLayerMask | The Rendering Layer selected by the User. |
RenderingLayerMaskField(GUIContent, SerializedProperty, GUILayoutOption[])
Makes a layer selection field.
public static void RenderingLayerMaskField(GUIContent label, SerializedProperty property, params GUILayoutOption[] options)
Parameters
Optional label in front of the field.
Serialized property which contains RenderingLayerMask struct.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the .
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
styleAdditional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.