Building Group

You can find all the information about Building Group here.

This component is managed by the Building Manager to group all the Building Parts based on their proximity. The Building Batching feature included in the Building Manager also leverages this component to batch the Building Parts together, resulting in a performance improvement in scenes with a large number of parts.

Explore fields description in the Inspector by hovering your cursor over them. You can find more information about this here: Tooltip Attribute.


API

You can access this class by including the following namespace:

using EasyBuildSystem.Features.Runtime.Buildings.Group;

Here is a list of all the events and methods of this component that can be called:

Events

/// <summary>
/// Event triggered when a Building Part is registered in this group.
/// </summary>
OnRegisterBuildingPartEvent.AddListener((BuildingPart part) => { });

/// <summary>
/// Event triggered when a Building Part is unregistered in this group.
/// </summary>
OnUnregisterBuildingPartEvent.AddListener((BuildingPart part) => { });

/// <summary>
/// Event triggered when the Building Group is batched.
/// </summary>
OnBatchedBuildingGroupEvent.AddListener(() => { });

/// <summary>
/// Event triggered when the Building Group is unbatched.
/// </summary>
OnUnbatchedBuildingGroupEvent.AddListener(() => { });

All of the methods related to this component can be found in the file "BuildingGroup.cs". If you have any specific questions about the API, feel free to contact us.

Last updated