Class: BlockInputComponent
Absorbs every pointer event inside the entity's UITransform rect — no Sprite required, the hit area is taken from UITransform width/height. Use for modal scrim, loading gates, etc. Without a UITransform (entity not under a Canvas) it has no hit area and is inert. swallowAncestors=false keeps the event bubbling so an outer handler still sees it (useful for outside-tap-to-dismiss).
Extends
Constructors
Constructor
ts
new BlockInputComponent(swallowAncestors?): BlockInputComponent;Parameters
| Parameter | Type | Default value |
|---|---|---|
swallowAncestors | boolean | true |
Returns
BlockInputComponent
Overrides
Properties
| Property | Modifier | Type | Default value | Inherited from |
|---|---|---|---|---|
dirty | public | boolean | true | Component.dirty |
enabled | public | boolean | true | Component.enabled |
swallowAncestors | public | boolean | undefined | - |