Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close Submission failedFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Close Your name Your email Suggestion* Declarationpublic static bool
PropertyField(
SerializedProperty property, params GUILayoutOption[]
options);
Declarationpublic static bool
PropertyField(
SerializedProperty property, bool
includeChildren, params GUILayoutOption[]
options);
Declarationpublic static bool
PropertyField(
SerializedProperty property,
GUIContent label, bool
includeChildren, params GUILayoutOption[]
options);
Returnsbool True if the property has children, is expanded, and includeChildren
is set to false; otherwise false. You can use it to determine the isExpanded
state of the property and customize the rendering of children if necessary.
Use this when you want to customise the look of the options for a GameObject in the Inspector. Use this to create fields for Serialized Properties. More information on changing the Editor is available in the Editor section.
Additional resources: SerializedProperty, SerializedObject.
//The scripts below show how to use a propertyField to change your editor. //Attach this first script to the GameObject that you would like to control. Add code in this script for any of the actions you require.using UnityEngine;
public class MyGameObjectScript : MonoBehaviour { public int m_MyInt = 75; public Vector3 m_MyVector = new Vector3(20, 1, 0); public GameObject m_MyGameObject; }
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4