RuntimeTransformHandle
RuntimeTransformHandle copied to clipboard
autoScale on orthographics camera addition
(Nice component) I notice it does not auto scale on an orthographic camera but this is possible with a change to the start of the Update function:
if (autoScale)
{
if (handleCamera.orthographic)
transform.localScale = Vector3.one * (handleCamera.orthographicSize * autoScaleFactor / 5f);
else
transform.localScale =
Vector3.one * (Vector3.Distance( handleCamera.transform.position, transform.position ) * autoScaleFactor) / 15;
}