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
@@ -258,6 +331,12 @@ public unsafe void RecordAction(InputAction.CallbackContext context)
258
331
context.ReadValue(valueBuffer,valueSizeInBytes);
259
332
}
260
333
334
+
/// <summary>
335
+
/// Clears all recorded data.
336
+
/// </summary>
337
+
/// <remarks>
338
+
/// **Note:** This method does not unsubscribe any actions that the instance is listening to, so after clearing the recorded data, new input on those subscribed actions will continue to be recorded.
339
+
/// </remarks>
261
340
publicvoidClear()
262
341
{
263
342
m_EventBuffer.Reset();
@@ -269,6 +348,7 @@ public void Clear()
269
348
DisposeInternal();
270
349
}
271
350
351
+
/// <inheritdoc/>
272
352
publicoverridestringToString()
273
353
{
274
354
if(count==0)
@@ -288,6 +368,7 @@ public override string ToString()
/// The <see cref="IInputInteraction"/> instance associated with this action event if applicable, or <c>null</c> if the action event is not associated with an input interaction.
536
+
/// </summary>
437
537
publicIInputInteractioninteraction
438
538
{
439
539
get
@@ -446,14 +546,36 @@ public IInputInteraction interaction
446
546
}
447
547
}
448
548
549
+
/// <summary>
550
+
/// The time, in seconds since your game or app started, that the event occurred.
551
+
/// </summary>
552
+
/// <remarks>
553
+
/// Times are in seconds and progress linearly in real-time. The timeline is the same as for <see cref="Time.realtimeSinceStartup"/>.
554
+
/// </remarks>
449
555
publicdoubletime=>m_Ptr->baseEvent.time;
450
556
557
+
/// <summary>
558
+
/// The time, in seconds since your game or app started, that the <see cref="phase"/> transitioned into <see cref="InputActionPhase.Started"/>.
559
+
/// </summary>
451
560
publicdoublestartTime=>m_Ptr->startTime;
452
561
562
+
/// <summary>
563
+
/// The duration, in seconds, that has elapsed between when this event was generated and when the
564
+
/// action <see cref="phase"/> transitioned to <see cref="InputActionPhase.Started"/> and has remained active.
565
+
/// </summary>
453
566
publicdoubleduration=>time-startTime;
454
567
568
+
/// <summary>
569
+
/// The size, in bytes, of the value associated with this action event.
/// Reads the value associated with this event into the contiguous memory buffer defined by <c>[buffer, buffer + bufferSize)</c>.
615
+
/// </summary>
616
+
/// <param name="buffer">Pointer to the contiguous memory buffer to write value data to.</param>
617
+
/// <param name="bufferSize">The size, in bytes, of the contiguous buffer pointed to by <paramref name="buffer"/>.</param>
618
+
/// <exception cref="NullReferenceException">If <paramref name="buffer"/> is <c>null</c>.</exception>
619
+
/// <exception cref="ArgumentException">If the given <paramref name="bufferSize"/> is less than the number of bytes required to write the event value to <paramref name="buffer"/>.</exception>
620
+
/// <seealso cref="ReadValueAsObject"/>
621
+
/// <seealso cref="ReadValue{TValue}"/>
491
622
publicvoidReadValue(void*buffer,intbufferSize)
492
623
{
493
624
varvalueSizeInBytes=m_Ptr->valueSizeInBytes;
@@ -501,6 +632,12 @@ public void ReadValue(void* buffer, int bufferSize)
/// Reads the value associated with this event as an object of type <typeparamref name="TValue"/>.
637
+
/// </summary>
638
+
/// <typeparam name="TValue">The event value type to be used.</typeparam>
639
+
/// <returns>Object of type <typeparamref name="TValue"/>.</returns>
640
+
/// <exception cref="InvalidOperationException">In case the size of <typeparamref name="TValue"/> does not match the size of the value associated with this event.</exception>
504
641
publicTValueReadValue<TValue>()
505
642
whereTValue:struct
506
643
{
@@ -518,6 +655,7 @@ public TValue ReadValue<TValue>()
/// The spatial position control on input devices with spatial tracking.
70
+
/// </summary>
71
+
/// <remarks>
72
+
/// Example: User head position in tracking-space using e.g. a head-tracking system. This could for example be a VR tracking system or another user-facing tracking sensor.
/// The spatial orientation control on input devices with spatial tracking.
78
+
/// </summary>
79
+
/// <remarks>
80
+
/// Example: User head-orientation in tracking-space using e.g. a head-tracking system. This could for example be a VR tracking system or another user-facing tracking sensor.
0 commit comments