BaseRaycaster

class in UnityEngine.EventSystems

/

다음으로부터 상속:EventSystems.UIBehaviour

매뉴얼로 전환

설명

Base class for any RayCaster.

A Raycaster is responsible for raycasting against scene elements to determine if the cursor is over them. Default Raycasters include PhysicsRaycaster, Physics2DRaycaster, GraphicRaycaster.

Custom raycasters can be added by extending this class.

변수

eventCameraThe camera that will generate rays for this raycaster.
renderOrderPriorityPriority of the raycaster based upon render order.
sortOrderPriorityPriority of the raycaster based upon sort order.

Public 함수

RaycastRaycast against the scene.

보호되는 함수

OnDisableSee MonoBehaviour.OnDisable.

상속된 멤버

변수

enabledEnabled Behaviours are Updated, disabled Behaviours are not.
isActiveAndEnabledHas the Behaviour had enabled called.
gameObjectThe game object this component is attached to. A component is always attached to a game object.
tagThe tag of this game object.
transformThe Transform attached to this GameObject.
runInEditModeAllow a specific instance of a MonoBehaviour to run in edit mode (only available in the editor).
useGUILayoutDisabling this lets you skip the GUI layout phase.
hideFlagsShould the object be hidden, saved with the scene or modifiable by the user?
nameThe name of the object.

Public 함수

BroadcastMessageCalls the method named methodName on every MonoBehaviour in this game object or any of its children.
CompareTagIs this game object tagged with tag ?
GetComponentReturns the component of Type type if the game object has one attached, null if it doesn't.
GetComponentInChildrenReturns the component of Type type in the GameObject or any of its children using depth first search.
GetComponentInParentReturns the component of Type type in the GameObject or any of its parents.
GetComponentsReturns all comp