static private LayerMaskField ( UnityEditor.SerializedProperty property, |
||
property | UnityEditor.SerializedProperty | |
label | ||
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);
}
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); }