mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 19:55:09 +00: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);
|
||
|
}
|
||
|
}
|