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
Copy file name to clipboardExpand all lines: Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput/InputValue.cs
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,8 @@ public object Get()
48
48
/// does not match the value type expected by the control or binding composite.</exception>
49
49
/// <remarks>
50
50
/// The following example shows how to read a value from a <see cref="PlayerInput"/> message.
51
-
///
51
+
/// 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.
52
+
/// </remarks>
52
53
/// <example>
53
54
/// <code>
54
55
/// using UnityEngine;
@@ -72,8 +73,6 @@ public object Get()
72
73
/// }
73
74
/// </code>
74
75
/// </example>
75
-
/// 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.
/// <returns>True if the button is activated over the button threshold. False otherwise</returns>
92
90
/// <remarks>
91
+
/// True if the button is activated over the button threshold. False otherwise
93
92
/// The following example check if a button is pressed when receiving a <see cref="PlayerInput"/> message.
94
-
///
93
+
/// 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.
94
+
/// </remarks>
95
95
/// <example>
96
96
/// <code>
97
97
/// [RequireComponent(typeof(PlayerInput))]
@@ -111,8 +111,6 @@ public TValue Get<TValue>()
111
111
/// }
112
112
/// </code>
113
113
/// </example>
114
-
/// 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