文档

Unity Engine

Unity Engine

TryGetData<T>(out T)

Test and return a piece of typed data if this ProcessorInstance.AvailableData.Element matches the type given.
阅读时间1 分钟最后更新于 1 个月前

Definition

TryGetData<T>(T)

public bool TryGetData<T>(out T data) where T : unmanaged

Parameters

data

T
The typed piece of data to be extracted.

Returns

Type

Description

boolWhether this ProcessorInstance.AvailableData.Element is of the same type as
T
, and if so, whether the parameter was updated.

Remarks

Additional Resources: ProcessorInstance.AvailableData