HeavenStudioPlus/Assets/Scripts/Transform/ForceScaleIdentity.cs
2021-12-18 23:10:43 -05:00

9 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);
}
}