RuntimeTransformHandle icon indicating copy to clipboard operation
RuntimeTransformHandle copied to clipboard

autoScale on orthographics camera addition

Open andypoly opened this issue 11 months ago • 0 comments

(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;
}

andypoly avatar Jan 30 '25 16:01 andypoly