Method | Description | |
---|---|---|
ConnectCylinderBetweenPoints ( |
Given two points and the transform that they are in, set position, rotation, and scale of a cylinder transform to connect it between the two points
|
|
GetChildRecursive ( |
walk hierarchy looking for named transform
|
|
IsInEditor ( ) : bool |
helper for detecting if running in editor
|
|
Map ( float minA, float maxA, float minB, float maxB, float value ) : float |
This takes a value, whose proportions are defined by minA and maxA, and scales it to a space defined by minB and maxB. For example, 5 in the space of 0 to 10 will map to 50 in the space of 0 to 100.
|
|
MapAndClamp ( float minA, float maxA, float minB, float maxB, float value ) : float |
This wrapper performs a map, but sets the results upper and lower limit based on the upper and lower bounds of the new scale.
|
|
MoveObjectInFrontOfUser ( |
Position transform along the gaze direction and orient yaw to match, with the specified offset
|
|
SetLayerRecursively ( |
||
SetMaterialRecursive ( |
Change material for every object in hierarchy
|
|
SetMaterialRecursiveForName ( |
Change material for every object in hierarchy which has a name equal to nameToTest
|
public static ConnectCylinderBetweenPoints ( |
||
endPointSpace | ||
a | One end point in the space of endPointSpace | |
b | Other end point in the space of endPointSpace | |
cylTransform | transform for the cylinder primitive to connect | |
return | void |
public static GetChildRecursive ( |
||
t | root transform to start searching from | |
name | string | name to look for |
return |
public static Map ( float minA, float maxA, float minB, float maxB, float value ) : float | ||
minA | float | lower bound for the original scale |
maxA | float | upper bound for the original scale |
minB | float | lower bound for new scale |
maxB | float | upper bound for new scale |
value | float | the original scale value to convert to the new /// scale. |
return | float |
public static MapAndClamp ( float minA, float maxA, float minB, float maxB, float value ) : float | ||
minA | float | lower bound for the original scale |
maxA | float | upper bound for the original scale |
minB | float | lower bound for new scale |
maxB | float | upper bound for new scale |
value | float | the original scale value to convert to the new /// scale. |
return | float |
public static MoveObjectInFrontOfUser ( |
||
stageTransform | transform of higher-level space where 0,1,0 is up | |
tran | transform to be repositioned | |
offset | translation offset, Z is forward | |
yawOffset | float | yaw offset |
return | void |
public static SetLayerRecursively ( |
||
gameObject | ||
layer | int | |
return | void |
public static SetMaterialRecursive ( |
||
t | root transform to start looking for renderers | |
mat | material to set everything to | |
return | void |
public static SetMaterialRecursiveForName ( |
||
t | root transform to start looking for renderers | |
mat | material to set everything to | |
nameToTest | string | |
return | void |