Interface IBuildingBlockSection
A Building Block Section defines a group of Building Block from the same area. The building Blocks of that section are grouped together in the UI to improve discoverability and ease the user experience. A section must also use the BuildingBlockItemAttribute attribute to be registered by the BuildingBlockManager. Note : If the GetBuildingBlocks() returns an empty set of Building Blocks, the section will not be displayed in the overlay. Only non-empty sections will be displayed.
Namespace: Unity.XR.CoreUtils.Editor.BuildingBlocks
Assembly: Unity.XR.CoreUtils.Editor.dll
Syntax
public interface IBuildingBlockSection
Properties
SectionIconPath
The path to the icon of this Building Block in the UI. This icon should be placed in a Resources folder.
Declaration
string SectionIconPath { get; }
Property Value
Type | Description |
---|---|
string |
SectionId
The name of this Building Block Section. This id will be used to show this Section in the UI.
Declaration
string SectionId { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetBuildingBlocks()
Implement this method to return the collection of Building Blocks composing this section.
Declaration
IEnumerable<IBuildingBlock> GetBuildingBlocks()
Returns
Type | Description |
---|---|
IEnumerable<IBuildingBlock> | The list of Building Blocks instances composing this section. |