Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetData<T>(out T)

Test and return a piece of typed data if this ProcessorInstance.AvailableData.Element matches the type given.
Read time 1 minuteLast updated 6 days ago

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
data
parameter was updated.

Remarks

Additional Resources: ProcessorInstance.AvailableData