Struct FrameHandle
Allows capturing the current frame and later checking if something happened in the same frame.
public readonly struct FrameHandle
- Inherited Members
Constructors
FrameHandle()
[Obsolete("Use FrameHandle.Claim instead.", true)]
public FrameHandle()
Properties
IsValid
If the handle was ever initialized. Use IsActive() to check if it is from the current frame.
public bool IsValid { get; }
Property Value
Methods
AssertActive()
Check if this FrameHandle was created in the current frame, otherwise throw an exception.
public void AssertActive()
Exceptions
Claim()
Create a new frame handle for the current frame that can be used to check that the frame is still current later on.
public static FrameHandle Claim()
Returns
Exceptions
IsActive()
Check if this FrameHandle was created in the current frame.
public bool IsActive()