文档

Unity Engine

Unity Engine

CreateEvent()

Creates a new event.
阅读时间1 分钟最后更新于 1 个月前

Definition

public EventID CreateEvent()

Returns

Type

Description

EventIDID of newly created event.

Remarks

The event may be passed to IDeviceContext.ReadBuffer and IDeviceContext.WriteBuffer to track when the corresponding read or write finishes. Once the event is no longer needed, it should be destroyed using IDeviceContext.DestroyEvent.