Description 描述
The default Inspector class for Terrain Layer.
Call Editor.CreateEditor with a TerrainLayer object to construct a TerrainLayerInspector object.
See Also: TerrainLayer.
Public Methods 公共方法
| ApplyCustomUI | Applies the custom UI for the Terrain Layer object. | ||
| HasPreviewGUI | Returns true if the Terrain Layer has a preview GUI. | ||
| OnInspectorGUI | Draws the default Terrain Layer Inspector GUI. | ||
| OnPreviewGUI | Draws the default Terrain Layer preview GUI. | ||
| RenderStaticPreview | Draws the default Terrain Layer static preview. |
Inherited Members 继承成员
Properties 属性
| serializedObject | A SerializedObject representing the object or objects being inspected. | ||
| target | The object being inspected. | ||
| targets | An array of all the object being inspected. | ||
| hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? | ||
| name | The name of the object. |
Public Methods 公共方法
| CreateInspectorGUI | Implement this method to make a custom UIElements inspector. | ||
| DrawDefaultInspector | Draws the built-in inspector. | ||
| DrawHeader | Call this function to draw the header of the editor. | ||
| DrawPreview | The first entry point for Preview Drawing. | ||
| GetInfoString | Implement this method to show asset information on top of the asset preview. | ||
| GetPreviewTitle | Override this method if you want to change the label of the Preview area. | ||
| OnInteractivePreviewGUI | Implement to create your own interactive custom preview. Interactive custom previews are used in the preview area of the inspector and the object selector. | ||
| OnPreviewSettings | Override this method if you want to show custom controls in the preview header. | ||
| Repaint | Redraw any inspectors that shows this editor. | ||
| RequiresConstantRepaint | Checks if this editor requires constant repaints in its current state. | ||
| UseDefaultMargins | Override this method in subclasses to return false if you don't want default margins. | ||
| GetInstanceID | Returns the instance id of the object. | ||
| ToString | Returns the name of the object. |
Protected Methods
| ShouldHideOpenButton | Returns the visibility setting of the "open" button in the Inspector. |
Static Methods 静态方法
| CreateCachedEditor | On return previousEditor is an editor for targetObject or targetObjects. The function either returns if the editor is already tracking the objects, or destroys the previous editor and creates a new one. | ||
| CreateCachedEditorWithContext | Creates a cached editor using a context object. | ||
| CreateEditor | Make a custom editor for targetObject or targetObjects. | ||
| CreateEditorWithContext | Make a custom editor for targetObject or targetObjects with a context object. | ||
| DrawFoldoutInspector | Draws the inspector GUI with a foldout header for target. | ||
| Destroy | Removes a GameObject, component or asset. | ||
| DestroyImmediate | Destroys the object obj immediately. You are strongly recommended to use Destroy instead. | ||
| DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. | ||
| FindObjectOfType | Returns the first active loaded object of Type type. | ||
| FindObjectsOfType | Returns a list of all active loaded objects of Type type. | ||
| Instantiate | Clones the object original and returns the clone. | ||
| CreateInstance | Creates an instance of a scriptable object. |
Operators 运算符
| bool | Does the object exist? | ||
| operator != | Compares if two objects refer to a different object. | ||
| operator == | Compares two object references to see if they refer to the same object. |
Messages 消息
| OnSceneGUI | Enables the Editor to handle an event in the Scene view. | ||
| Awake | This function is called when the ScriptableObject script is started. | ||
| OnDestroy | This function is called when the scriptable object will be destroyed. | ||
| OnDisable | This function is called when the scriptable object goes out of scope. | ||
| OnEnable | This function is called when the object is loaded. |
Events
| finishedDefaultHeaderGUI | An event raised while drawing the header of the Inspector window, after the default header items have been drawn. |