FindChildRecursive
(
parent
, name
)
|
Walks the hierarchy beneath parent searching for a Transform whose GameObject is named name .
This is a convience method equivalent to calling FindChildRecursive(Transform, Predicate<Transform>) with a predicate that simply checks the name.
Signature
static Transform Oculus.Interaction.TransformExtensions.FindChildRecursive(this Transform parent, string name) Parameters parent: this Transform
The Transform which will serve as the root of the search.
name: string
The name for which to search.
Returns Transform
The first child found with the requested name. If more than one candidate meets the requirement, there is no guarantee which of them will be returned. If there are no candidates, returns null.
|
FindChildRecursive
(
parent
, predicate
)
|
Walks the hierarchy beneath parent searching for a Transform for which predicate succeeds.
Signature
static Transform Oculus.Interaction.TransformExtensions.FindChildRecursive(this Transform parent, Predicate< Transform > predicate) Parameters parent: this Transform
The Transform which will serve as the root of the search.
predicate: Predicate< Transform >
The predicate for which to search.
Returns Transform
The first child found for which the predicate succeeds. If more than one candidate meets the requirement, there is no guarantee which of them will be returned. If there are no candidates, returns null.
|
InverseTransformPointUnscaled
(
transform
, position
)
|
Transforms a 3D position from world space to local space, ignoring scaling.
This is useful for specialized operations which manipulate scale while performing calculations which would otherwise be affected by scale; for example usage, see the PanelwithManipulators sample.
Signature
static Vector3 Oculus.Interaction.TransformExtensions.InverseTransformPointUnscaled(this Transform transform, Vector3 position) Parameters transform: this Transformposition: Vector3Returns Vector3 |
TransformBounds
(
transform
, bounds
)
|
Transforms a bounding box from local to world space.
Signature
static Bounds Oculus.Interaction.TransformExtensions.TransformBounds(this Transform transform, in Bounds bounds) Parameters transform: this Transform
Transfrom that bounds is local to.
bounds: in Bounds
The bounds to transform, in local space.
Returns Bounds
The bounding box in world space.
|
TransformPointUnscaled
(
transform
, position
)
|
Transforms a 3D position from local space to world space, ignoring scaling.
This is useful for specialized operations which manipulate scale while performing calculations which would otherwise be affected by scale; for example usage, see the PanelwithManipulators sample.
Signature
static Vector3 Oculus.Interaction.TransformExtensions.TransformPointUnscaled(this Transform transform, Vector3 position) Parameters transform: this Transformposition: Vector3Returns Vector3 |