mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-12 20:55:08 +00:00
9 lines
218 B
C#
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);
|
|
}
|
|
}
|