Files
plugin-library/Assets/02.InformationSave/RunTime/Extension/LocalTransformInfoExtension.cs
2025-03-26 09:34:52 +08:00

17 lines
510 B
C#

using UnityEngine;
namespace Stary.Evo.InformationSave
{
public static class LocalTransformInfoExtension
{
public static LocalTransformInfo.Information GetLocalTransformInformation(this Transform tf, string desc)
{
return tf.GetComponent<LocalTransformInfo>()._list.Find(n => n.desc == desc);
}
public static void SetLocalTransformInfo(this Transform tf, string desc)
{
tf.GetComponent<LocalTransformInfo>().Set(desc);
}
}
}