Horje
world space constant size Code Example
world space constant size
public float downScaling; // to configure the size
private float _distance;
private Canvas _canvas;

private void Update()
{
	_distance = Vector3.Distance(_canvas.transform.position, _canvas.worldCamera.transform.position);
    _canvas.transform.localScale = Vector3.one * _distance / downScaling;

    _canvas.transform.LookAt(_canvas.worldCamera.transform); // canvas content needs to be flipped 180°
}




Csharp

Related
how to call void unity Code Example how to call void unity Code Example
unity ar scale Code Example unity ar scale Code Example
make endless loop c# Code Example make endless loop c# Code Example
how to detach the camera from the player after death unity Code Example how to detach the camera from the player after death unity Code Example
solid principles c# Code Example solid principles c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12