Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RenderingLayerMaskField

Makes a layer selection field.
Read time 7 minutesLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

RenderingLayerMaskField(string, uint, GUILayoutOption[])

Makes a layer selection field.
public static uint RenderingLayerMaskField(string label, uint layers, params GUILayoutOption[] options)

Parameters

label

Optional label in front of the field.

layers

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 style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

Returns

Type

Description

uintThe 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

label

Optional label in front of the field.

layers

Value which represents RenderingLayerMask.

Optional GUIStyle.

An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

Returns

Type

Description

uintThe 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.

layers

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 style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

Returns

Type

Description

uintThe 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

label

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 style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

Returns

Type

Description

RenderingLayerMaskThe 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

label

Optional label in front of the field.

The layer shown in the field.

Optional GUIStyle.

An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

Returns

Type

Description

RenderingLayerMaskThe 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 style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

Returns

Type

Description

RenderingLayerMaskThe 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.

layers

Value which represents RenderingLayerMask.

Optional GUIStyle.

An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

Returns

Type

Description

uintThe 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.

Optional GUIStyle.

An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

Returns

Type

Description

RenderingLayerMaskThe 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 style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.