Class RendererExtensions
Unity Renderer
extension methods.
Inheritance
System.Object
RendererExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: StansAssets.Foundation.Extensions
Assembly: cs.temp.dll.dll
Syntax
public static class RendererExtensions
Methods
GetRendererBounds(Renderer)
Renderer Bounds of the renderer. Method also take children in consideration.
Declaration
public static Bounds GetRendererBounds(this Renderer renderer)
Parameters
Type | Name | Description |
---|---|---|
Renderer | renderer | Renderer to operate with. |
Returns
Type | Description |
---|---|
Bounds | Calculated renderer bounds. |
IsVisibleFrom(Renderer, Camera)
Methods to check if renderer is visible from a certain point.
Declaration
public static bool IsVisibleFrom(this Renderer renderer, Camera camera)
Parameters
Type | Name | Description |
---|---|---|
Renderer | renderer | Renderer to operate with. |
Camera | camera | Camera instance tha will be used for calculation. |
Returns
Type | Description |
---|---|
System.Boolean |