Version: 2019.1

Tools

class in UnityEditor

/

Inherits from:ScriptableObject

Switch to Manual

Description

Класс используется для манипулирования инструментами, используемые в Unity в Scene View

Static Variables

currentИнструмент, который в данный момент выбран для Scene View.
handlePositionПоложение инструмента обработки в пространстве.
handleRectThe rectangle used for the rect tool.
handleRectRotationThe rotation of the rect tool handle in world space.
handleRotationПоложение инструмента вращения в пространстве.
hiddenСкрывает инструменты (Move, Rotate, Resize) на Scene View
pivotModeAre we in Center or Pivot mode.
pivotRotationWhat's the rotation of the tool handle.
rectBlueprintModeIs the rect handle in blueprint mode?
viewToolThe option that is currently active for the View tool in the Scene view.
visibleLayersWhich layers are visible in the Scene view.

Inherited members

Variables

hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameThe name of the object.

Public Functions

GetInstanceIDReturns the instance id of the object.
ToStringReturns the name of the GameObject.

Static Functions

DestroyУдаляет GameObject, Component или Asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindObjectOfTypeReturns the first active loaded object of Type type.
FindObjectsOfTypeReturns a list of all active loaded objects of Type type.
InstantiateClones the object original and returns the clone.
CreateInstanceCreates an instance of a scriptable object.

Operators

boolDoes 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

AwakeThis function is called when the ScriptableObject script is started.
OnDestroyThis function is called when the scriptable object will be destroyed.
OnDisableThis function is called when the scriptable object goes out of scope.
OnEnableThis function is called when the object is loaded.