Skip to content

autoScale on orthographics camera addition #23

@andypoly

Description

@andypoly

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions