Class PrefabCreatorBuildingBlock
This Building Block can be used in a Building Block Section to instantiate a prefab. The Building Block Section is in charge of setting the prefab to instantiate using that Building Block as well as setting a unique and recognizable name and icon for this Building Block.
Implements
Inherited Members
Namespace: Unity.XR.CoreUtils .Editor.BuildingBlocks
Assembly: solution.dll
Syntax
public class PrefabCreatorBuildingBlock : IBuildingBlock
Constructors
Name | Description |
---|---|
Prefab |
Class constructor. |
Properties
Name | Description |
---|---|
Icon |
The path to the icon of this Building Block in the UI. This icon should be placed in a Resources folder. |
Id | The name of this Building Block. This id will be used to show this Building Block in the UI. |
Is |
Whether the user know if this Building Block is enabled or disabled. If disabled, the Building Block will be grayed out in the UI. |
Tooltip | Description of the Building Block. This description will be displayed as a tooltip in the UI. |
Methods
Name | Description |
---|---|
Execute |
Implement this method to execute the actions associated to this Building Block. |