◆ CountAllHitZones()
| proto external int HitZoneContainerComponent.CountAllHitZones |
( |
| ) |
|
Counts the number of hitzones in this entity.
Use instead of GetAllHitZones when you only need to get the count because this function does not allocate memory.
◆ CountAllHitZonesInHierarchy()
| proto external int HitZoneContainerComponent.CountAllHitZonesInHierarchy |
( |
| ) |
|
Counts the number of hitzones in this entity and its children.
Use instead of GetAllHitZonesInHierachy when you only need to get the count because this function does not allocate memory.
◆ GetAllHitZones()
| proto external int HitZoneContainerComponent.GetAllHitZones |
( |
out notnull array< HitZone > | outHitZones | ) |
|
Clears and fills the specified outHitZones array with all HZs in this entity Returns the count of elements that were filled into the array.
◆ GetAllHitZonesInHierarchy()
| proto external int HitZoneContainerComponent.GetAllHitZonesInHierarchy |
( |
out notnull array< HitZone > | outHitZones | ) |
|
Clears and fills the specified outHitZones array with all HZs in this entity and its children.
Returns the count of elements that were filled into the array.
◆ GetDefaultHitZone()
| proto external HitZone HitZoneContainerComponent.GetDefaultHitZone |
( |
| ) |
|
Returns the default hitzone.
In play mode, if there are no hitzones, the component is not created. Otherwise, a default hitzone is guaranteed to be present. In edit mode, the component is always created even if no hitzone is defined. In this case the hitzone might return null.
◆ GetHitZone()
| proto external HitZone HitZoneContainerComponent.GetHitZone |
( |
string | colliderName | ) |
|
◆ GetHitZoneByColliderID()
| proto external HitZone HitZoneContainerComponent.GetHitZoneByColliderID |
( |
int | colliderID | ) |
|
Get the HitZone that matches the provided collider ID.
Only searches on the component. Returns the hitzone matching the collider ID, or null if the hitzone can't be found.
◆ GetHitZoneByName()
| proto external HitZone HitZoneContainerComponent.GetHitZoneByName |
( |
string | hitZoneName | ) |
|
Get the HitZone that matches the provided collider name.
Searches the entire hierarchy. Returns the hitzone matching the provided name, or null if the hitzone can't be found.
◆ GetHitZonesByColliderIDs()
| proto external int HitZoneContainerComponent.GetHitZonesByColliderIDs |
( |
out notnull array< HitZone > | outHitZones, |
|
|
notnull array< int > | colliderIDs ) |
Clears and fills the specified outHitZones array with all HZs that are attached to colliderIDs.
Returns the hitzones matching those collider IDs Returns the count of elements that were filled into the array.
◆ GetHitZonesByID()
| proto external int HitZoneContainerComponent.GetHitZonesByID |
( |
out notnull array< HitZone > | outHitZones, |
|
|
notnull array< int > | hitZoneIDs ) |
Clears and fills the specified outHitZones array with all HZs in this entity.
The ID of a hitzone is its position on the array returned by GetAllHitZones Returns the count of elements that were filled into the array.
◆ GetHitZonesByIDInHierarchy()
| proto external int HitZoneContainerComponent.GetHitZonesByIDInHierarchy |
( |
out notnull array< HitZone > | outHitZones, |
|
|
notnull array< int > | hitZoneIDs ) |
Clears and fills the specified outHitZones array with all HZs in this entity and its children.
The ID of a hitzone is its position on the array returned by GetAllHitZones Returns the count of elements that were filled into the array.
◆ GetOwner()
| proto external IEntity HitZoneContainerComponent.GetOwner |
( |
| ) |
|
◆ GetParentHitZoneContainer()
◆ HasDataToReplicate()
| bool HitZoneContainerComponent.HasDataToReplicate |
( |
| ) |
|
|
protected |
◆ OnRegisteredToParent()
◆ OnRplLoad()
| bool HitZoneContainerComponent.OnRplLoad |
( |
ScriptBitReader | reader | ) |
|
|
protected |
◆ OnRplSave()
| bool HitZoneContainerComponent.OnRplSave |
( |
ScriptBitWriter | writer | ) |
|
|
protected |
◆ OnUnRegisteredFromParent()
The documentation for this interface was generated from the following file:
- Game/generated/Components/HitZoneContainerComponent.c