mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-03-23 02:44:37 -05:00
16 lines
362 B
C#
16 lines
362 B
C#
using UnityEngine;
|
|
|
|
namespace VRM
|
|
{
|
|
public static class TransformExtensions
|
|
{
|
|
public static float UniformedLossyScale(this Transform transform)
|
|
{
|
|
return Mathf.Max(
|
|
Mathf.Max(transform.lossyScale.x,
|
|
transform.lossyScale.y),
|
|
transform.lossyScale.z
|
|
);
|
|
}
|
|
}
|
|
} |