편집

다음을 통해 공유


CanvasExtensions.GetChildRectTransformAtPoint Method

Definition

Gets a child rect transform for the given point and parameters.

public:
[System::Runtime::CompilerServices::Extension]
 static UnityEngine::RectTransform ^ GetChildRectTransformAtPoint(UnityEngine::RectTransform ^ rectTransformParent, UnityEngine::Vector3 worldPoint, bool recursive, bool shouldReturnActive, bool shouldReturnRaycastable);
public static UnityEngine.RectTransform GetChildRectTransformAtPoint (this UnityEngine.RectTransform rectTransformParent, UnityEngine.Vector3 worldPoint, bool recursive, bool shouldReturnActive, bool shouldReturnRaycastable);
static member GetChildRectTransformAtPoint : UnityEngine.RectTransform * UnityEngine.Vector3 * bool * bool * bool -> UnityEngine.RectTransform
<Extension()>
Public Function GetChildRectTransformAtPoint (rectTransformParent As RectTransform, worldPoint As Vector3, recursive As Boolean, shouldReturnActive As Boolean, shouldReturnRaycastable As Boolean) As RectTransform

Parameters

rectTransformParent
UnityEngine.RectTransform

The rect transform to look for children that may contain the projected (orthogonal to the child's normal) world point

worldPoint
UnityEngine.Vector3

The world point

recursive
Boolean

Indicates if the check should be done recursively

shouldReturnActive
Boolean

If true, will only check children that are active, otherwise it will check all children.

shouldReturnRaycastable
Boolean

If true, will only check children that if they have a graphic and have its member raycastTarget set to true, otherwise will ignore the raycastTarget value. Will still allow children to be checked that do not have a graphic component.

Returns

UnityEngine.RectTransform

Applies to