기술 자료

Unity Engine

Unity Engine

TryRemoveComponent<T>()

Removes the attached component of type T, if one is attached.
읽는 시간 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.