RenderingLayerMaskField
Makes a rendering layer selection field.
Read time 2 minutesLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
RenderingLayerMaskField(Rect, string, SerializedProperty)
Makes a rendering layer selection field.
public static void RenderingLayerMaskField(Rect position, string label, SerializedProperty property)
Parameters
Rectangle on the screen to use for field.
Optional label in front of the field.
Serialized property which contains RenderingLayerMask struct.
RenderingLayerMaskField(Rect, GUIContent, SerializedProperty)
Makes a rendering layer selection field.
public static void RenderingLayerMaskField(Rect position, GUIContent label, SerializedProperty property)
Parameters
Rectangle on the screen to use for field.
Optional label in front of the field.
Serialized property which contains RenderingLayerMask struct.
RenderingLayerMaskField(Rect, string, RenderingLayerMask)
Makes a rendering layer selection field.
public static RenderingLayerMask RenderingLayerMaskField(Rect position, string label, RenderingLayerMask layers)
Parameters
Rectangle on the screen to use for field.
Optional label in front of the field.
Value which represents RenderingLayerMask.
Returns
Type | Description |
|---|---|
| RenderingLayerMask | The Rendering Layer selected by the User. |
RenderingLayerMaskField(Rect, string, RenderingLayerMask, GUIStyle)
Makes a rendering layer selection field.
public static RenderingLayerMask RenderingLayerMaskField(Rect position, string label, RenderingLayerMask layers, GUIStyle style)
Parameters
Rectangle on the screen to use for field.
Optional label in front of the field.
Value which represents RenderingLayerMask.
Returns
Type | Description |
|---|---|
| RenderingLayerMask | The Rendering Layer selected by the User. |
RenderingLayerMaskField(Rect, GUIContent, RenderingLayerMask)
Makes a rendering layer selection field.
public static RenderingLayerMask RenderingLayerMaskField(Rect position, GUIContent label, RenderingLayerMask layers)
Parameters
Rectangle on the screen to use for field.
Optional label in front of the field.
Value which represents RenderingLayerMask.
Returns
Type | Description |
|---|---|
| RenderingLayerMask | The Rendering Layer selected by the User. |
RenderingLayerMaskField(Rect, GUIContent, RenderingLayerMask, GUIStyle)
Makes a rendering layer selection field.
public static RenderingLayerMask RenderingLayerMaskField(Rect position, GUIContent label, RenderingLayerMask layers, GUIStyle style)
Parameters
Rectangle on the screen to use for field.
Optional label in front of the field.
Value which represents RenderingLayerMask.
Returns
Type | Description |
|---|---|
| RenderingLayerMask | The Rendering Layer selected by the User. |