mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-05-01 04:44:26 +02:00
10 lines
218 B
C#
10 lines
218 B
C#
using UnityEngine;
|
|
|
|
public class ForceScaleIdentity : MonoBehaviour
|
|
{
|
|
void Update()
|
|
{
|
|
transform.localScale = new Vector3(1f / transform.parent.localScale.x, 1f / transform.parent.localScale.y);
|
|
}
|
|
}
|