You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// This method allocates GC memory and will thus create garbage. If used during gameplay,
@@ -36,13 +36,13 @@ public object Get()
36
36
37
37
////TODO: add automatic conversions
38
38
/// <summary>
39
-
/// Read the value of the action.
39
+
/// Read the current value of the action.
40
40
/// </summary>
41
41
/// <returns>The current value from the action cast to the specified type.</returns>
42
42
/// <typeparam name="TValue">Type of value to read. This must correspond to the
43
43
/// expected by either <see cref="control"/> or, if it is a composite, by the
44
44
/// <see cref="InputBindingComposite"/> in use.
45
-
/// The type depends on what type of controls the action is bound to. Common types are float and Vector2</typeparam>
45
+
/// The type depends on what type of controls the action is bound to. Common types are <c>float</c> and <see cref="UnityEngine.Vector2"/></typeparam>
46
46
/// <exception cref="InvalidOperationException">The given type <typeparamref name="TValue"/>
47
47
/// does not match the value type expected by the control or binding composite.</exception>
48
48
/// <remarks>
@@ -69,7 +69,7 @@ public object Get()
69
69
/// }
70
70
/// </code>
71
71
/// </example>
72
-
/// The given InputValue is only valid for the duration of the callback. Storing the InputValue references somewhere and calling Get<T>() later does not work correctly.
72
+
/// The given <c>InputValue</c> is only valid for the duration of the callback. Storing the <c>InputValue</c> references somewhere and calling Get<T>() later does not work correctly.
////TODO: proper message if value type isn't right
85
85
/// <summary>
86
-
/// Check if the action button is pressed
86
+
/// Check if the action button is pressed.
87
87
/// </summary>
88
88
/// <returns>True if the button is activated over the button threshold. False otherwise</returns>
89
89
/// <remarks>
@@ -109,7 +109,7 @@ public TValue Get<TValue>()
109
109
/// }
110
110
/// </code>
111
111
/// </example>
112
-
/// The given InputValue is only valid for the duration of the callback. Storing the InputValue references somewhere and calling Get<T>() later does not work correctly.
112
+
/// The given <c>InputValue</c> is only valid for the duration of the callback. Storing the <c>InputValue</c> references somewhere and calling Get<T>() later does not work correctly.
0 commit comments