BITKit/Packages/Runtime~/Unity/Common/Scripts/Utility/AnimatorUtils.cs

20 lines
415 B
C#
Raw Normal View History

2023-06-05 19:57:17 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace BITKit
{
public struct AnimatorParameter
{
public AnimatorControllerParameterType type;
public string name;
public object value;
public T Get<T>()
{
if (value is T t)
{
return t;
}
return default;
}
}
}