Pro_Unit

AnimatorHash

Jan 30th, 2021
794
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. using UnityEngine;
  2.  
  3. public class AnimatorHash : ScriptableObject
  4. {
  5.     [HideInInspector]
  6.     [SerializeField]
  7.     private int _hash;
  8.    
  9.     public static implicit operator int(AnimatorHash animatorHash)
  10.         => animatorHash._hash;
  11.  
  12. #if UNITY_EDITOR
  13.     public void SetHash(int hash) => _hash = hash;
  14. #endif
  15. }
Advertisement
Add Comment
Please, Sign In to add comment