ドキュメント

Unity Engine

Unity Engine

TryRemoveComponent<T>()

Removes the attached component of type T, if one is attached.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public bool TryRemoveComponent<T>() where T : struct, IVisualElementComponent

Returns

Type

Description

bool
true
if a component was removed;
false
if none was attached.