@@ -71,6 +71,8 @@ public InputAction action
71
71
/// case the reference is reset to its default state which does not reference an action.</param>
72
72
/// <exception cref="InvalidOperationException"><paramref name="action"/> is not contained in an
73
73
/// <see cref="InputActionMap"/> that is itself contained in an <see cref="InputActionAsset"/>.</exception>
74
+ /// <exception cref="InvalidOperationException">If attempting to mutate a reference object
75
+ /// that is backed by an .inputactions asset. This is not allowed to prevent side-effects.</exception>
74
76
public void Set ( InputAction action )
75
77
{
76
78
if ( action == null )
@@ -101,6 +103,8 @@ public void Set(InputAction action)
101
103
/// <exception cref="ArgumentNullException"><paramref name="asset"/> is <c>null</c> -or-
102
104
/// <paramref name="mapName"/> is <c>null</c> or empty -or- <paramref name="actionName"/>
103
105
/// is <c>null</c> or empty.</exception>
106
+ /// <exception cref="InvalidOperationException">If attempting to mutate a reference object
107
+ /// that is backed by by .inputactions asset. This is not allowed to prevent side-effects.</exception>
104
108
/// <exception cref="ArgumentException">No action map called <paramref name="mapName"/> could
105
109
/// be found in <paramref name="asset"/> -or- no action called <paramref name="actionName"/>
106
110
/// could be found in the action map called <paramref name="mapName"/> in <paramref name="asset"/>.</exception>
@@ -234,6 +238,7 @@ internal void Invalidate()
234
238
/// <summary>
235
239
/// Equivalent to <see cref="InputActionReference.action"/>.
236
240
/// </summary>
241
+ /// <returns>The associated action reference if its a valid reference, else <c>null</c>.</returns>
237
242
public InputAction ToInputAction ( )
238
243
{
239
244
return action ;
0 commit comments