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