Click or drag to resize

GameObjectExtensionsGetBounds Method

Get the bounds of a GameObject, using attached colliders

Namespace:  ImmerseSDK.Extensions
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.5.0.0 (3.5.0.0)
Syntax
C#
public static void GetBounds(
	this UnityEngine.Transform parent,
	out UnityEngine.Vector3 center,
	out UnityEngine.Vector3 size
)

Parameters

parent
Type: UnityEngine.Transform
Target parent Transform
center
Type: UnityEngine.Vector3
Returns the center of the bounds
size
Type: UnityEngine.Vector3
Returns the size of the bounds relative to the center

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type UnityEngine.Transform. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also