File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,18 @@ public AnimatorParameter(string name)
5757 _hash = Animator . StringToHash ( name ) ;
5858 }
5959
60- /// <param name="name">The name of the animation parameter.</param>
60+ /// <summary>
61+ /// Implicitly converts a name to an animator parameter.
62+ /// </summary>
63+ /// <param name="name">The name of the animator parameter.</param>
6164 public static implicit operator AnimatorParameter ( string name ) => new AnimatorParameter ( name ) ;
6265
66+ /// <summary>
67+ /// Implicitly converts an animator parameter to a hash id.
68+ /// </summary>
69+ /// <param name="property">The animator parameter to convert to an id.</param>
70+ public static implicit operator int ( AnimatorParameter property ) => property . hash ;
71+
6372 }
6473
6574}
You can’t perform that action at this time.
0 commit comments