m Fix category on node visual |
Added links. |
||
Line 21: | Line 21: | ||
== Inputs == | == Inputs == | ||
=== Instance (Slot) === | === Instance ([[Slot]]) === | ||
The slot for whose hierarchy a bounding box is calculated. | The slot for whose hierarchy a bounding box is calculated. | ||
=== IncludeInactive (bool) === | === IncludeInactive ([[Type:bool|bool]]) === | ||
Determines whether inactive parts of the hierarchy are included when calculating the bounding box. Default is False which means that inactive slots and their children are ignored. | Determines whether inactive parts of the hierarchy are included when calculating the bounding box. Default is False which means that inactive slots and their children are ignored. | ||
=== CoordinateSpace (Slot) === | === CoordinateSpace ([[Slot]]) === | ||
The slot relative to whose coordinate space the bounding box is calculated. Default is null which results in the bounding box being calculated in [[Coordinate_spaces#Global_vs._Local|global coordinate space]]. | The slot relative to whose coordinate space the bounding box is calculated. Default is null which results in the bounding box being calculated in [[Coordinate_spaces#Global_vs._Local|global coordinate space]]. | ||
=== OnlyWithTag (String) === | === OnlyWithTag ([[Type:string|String]]) === | ||
If specified, only slots with the given tag are included in the bounding box calculation. Default is null, which results in no filtering by tag. Unlike the handling of IncludeInactive, child slots with a matching tag are included even if their parent slot(s) are not tagged. | If specified, only slots with the given tag are included in the bounding box calculation. Default is null, which results in no filtering by tag. Unlike the handling of IncludeInactive, child slots with a matching tag are included even if their parent slot(s) are not tagged. | ||
Line 39: | Line 39: | ||
== Outputs == | == Outputs == | ||
=== * (BoundingBox) === | === * ([[Type:BoundingBox|BoundingBox]]) === | ||
The calculated bounding box. Default is an empty bounding box if the Instance input is null or if there are no IBounded components present in it's hierarchy on slots which pass the filtering conditions. | The calculated bounding box. Default is an empty bounding box if the Instance input is null or if there are no IBounded components present in it's hierarchy on slots which pass the filtering conditions. | ||
[[Category:ProtoFlux:Transform:Bounds]] | [[Category:ProtoFlux:Transform:Bounds]] |
Latest revision as of 05:09, 29 May 2024
The Compute Bounding Box node calculates a bounding box for the input Instance slot hierarchy in the input CoordinateSpace with optional filtering for inactive and/or tagged slots.
Only components which implement the IBounded
interface are used for bounding box calculation. These include: Bounds, MeshRenderers, SkinnedMeshRenderers, TextRenderers, UIX Canvases, CharacterControllers and all Colliders.
Inputs
Instance (Slot)
The slot for whose hierarchy a bounding box is calculated.
IncludeInactive (bool)
Determines whether inactive parts of the hierarchy are included when calculating the bounding box. Default is False which means that inactive slots and their children are ignored.
CoordinateSpace (Slot)
The slot relative to whose coordinate space the bounding box is calculated. Default is null which results in the bounding box being calculated in global coordinate space.
OnlyWithTag (String)
If specified, only slots with the given tag are included in the bounding box calculation. Default is null, which results in no filtering by tag. Unlike the handling of IncludeInactive, child slots with a matching tag are included even if their parent slot(s) are not tagged.
Outputs
* (BoundingBox)
The calculated bounding box. Default is an empty bounding box if the Instance input is null or if there are no IBounded components present in it's hierarchy on slots which pass the filtering conditions.