componentIsHud property
bool
get
componentIsHud
Implementation
bool get componentIsHud {
if (hasGameRef) {
if (gameRef.camera.viewport.contains(this)) {
return true;
}
if (parent != null) {
return gameRef.camera.viewport.contains(parent!);
}
}
return false;
}