Documentation

Unity Engine

Download Unity

Unity Engine

HasComponentData<T>()

Checks whether the GameObject this Component is attached to has the ComponentData T, an IComponentData.
Read time 1 minuteLast updated 6 hours ago

Definition

public bool HasComponentData<T>() where T : unmanaged, IComponentData

Returns

Type

Description

boolTrue if the GameObject exists and has the ComponentData.

Remarks

Doesn't wait for any jobs.