mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-14 13:45:10 +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);
|
||
|
}
|
||
|
}
|