Class DebugDrawModifierExtensions
Helpful extension methods to make working with IDebugDrawer more user-friendly
Inheritance
Namespace: Atlas
Assembly: Atlas.Runtime.dll
Syntax
public static class DebugDrawModifierExtensions
Methods
| Improve this Doc View SourceBillboarded(IDebugDrawer, Vector3)
Extension method to apply a billboarded transformation to the given IDebugDrawer. Uses UnityEngine.Camera.main by default for billboarding
Declaration
public static IDebugDrawer Billboarded(this IDebugDrawer drawer, Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
IDebugDrawer | drawer | The drawer to billboard |
UnityEngine.Vector3 | position | The position to aply to the element |
Returns
Type | Description |
---|---|
IDebugDrawer | The billboarded drawer |
Billboarded(IDebugDrawer, Vector3, Camera)
Extension method to apply a billboarded transformation to the given IDebugDrawer
Declaration
public static IDebugDrawer Billboarded(this IDebugDrawer drawer, Vector3 position, Camera camera)
Parameters
Type | Name | Description |
---|---|---|
IDebugDrawer | drawer | The drawer to billboard |
UnityEngine.Vector3 | position | The position to aply to the element |
UnityEngine.Camera | camera | The camera to face the element toward |
Returns
Type | Description |
---|---|
IDebugDrawer | The billboarded drawer |
Timed(IDebugDrawer, Single)
Extension method to modify the given IDebugDrawer by adding a draw lifetime
Declaration
public static IDebugDrawer Timed(this IDebugDrawer drawer, float lifetime)
Parameters
Type | Name | Description |
---|---|---|
IDebugDrawer | drawer | The drawer to modify |
System.Single | lifetime | Amount of time (in seconds) to draw the element for |
Returns
Type | Description |
---|---|
IDebugDrawer | The original IDebugDrawer, wrapped in a TimedDebugDrawModifier |
Transformed(IDebugDrawer, Vector3)
Extension method to apply a transformation to a IDebugDrawer
Declaration
public static IDebugDrawer Transformed(this IDebugDrawer drawer, Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
IDebugDrawer | drawer | The drawer to transform |
UnityEngine.Vector3 | position | The position to apply to the element |
Returns
Type | Description |
---|---|
IDebugDrawer | The transformed drawer |
Transformed(IDebugDrawer, Vector3, Quaternion)
Extension method to apply a transformation to a IDebugDrawer
Declaration
public static IDebugDrawer Transformed(this IDebugDrawer drawer, Vector3 position, Quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
IDebugDrawer | drawer | The drawer to transform |
UnityEngine.Vector3 | position | The position to apply to the element |
UnityEngine.Quaternion | rotation | The rotation to apply to the element |
Returns
Type | Description |
---|---|
IDebugDrawer | The transformed drawer |