Easy Build System
Asset StoreSupportTwitterDiscord
  • Introduction
  • Getting Started
    • Getting Started
    • Common Issues
  • Tutorials
    • Beginners Guides
      • Modular Building Guide
      • Upgrading Guide
    • Advanced Guides
  • Components
    • Building Area
    • Building Group
    • Building Manager
      • Building Collection
      • Building Saver
    • Building Part
      • Building Conditions
    • Building Placer
      • Editor Building Placer
    • Building Socket
    • Building Linkable Surface
  • Integrations
    • Game Creator 2
      • Game Creator 2 - Inventory
    • Game Kit Controller
    • PlayMaker
    • PUN 2
    • Mirror
    • Fish-Net
    • RPG Builder
    • uSurvival
    • Rewired
  • Supports
    • XR Interaction Toolkit Support
  • Addons
    • Advanced Buildings
    • Buggy Constructor
    • Circular Building Menu
    • House Buildings
    • Survival Buildings
  • Annex
    • Compatibility
    • Refund Policy
Powered by GitBook
On this page

Was this helpful?

  1. Components

Building Group

You can find all the information about Building Group here.

PreviousBuilding AreaNextBuilding Manager

Last updated 1 year ago

Was this helpful?

This component is managed by the to group all the based on their proximity. The Building Batching feature included in the also leverages this component to batch the 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: .


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(() => { });

Methods

/// <summary>
/// Batches the building group, combining the renderers into a single batch.
/// </summary>
BatchBuildingGroup(BuildingPart part);

/// <summary>
/// Unbatches the building group, restoring the individual renderers.
/// </summary>
UnbatchBuildingGroup(BuildingPart part);

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.

Building Manager
Building Parts
Building Manager
Building Parts
Tooltip Attribute