Class BuildingBlockUtils
This class contains a set of utility methods when working with Building Blocks.
Inherited Members
Namespace: Unity.XR.CoreUtils.Editor.BuildingBlocks
Assembly: Unity.XR.CoreUtils.Editor.dll
Syntax
public static class BuildingBlockUtils
Methods
AnyCapabilityProfileSelected()
Checks if any capability profiles are currently selected.
Declaration
public static bool AnyCapabilityProfileSelected()
Returns
Type | Description |
---|---|
bool | returns true when there are capability profiles selected in the project validation window under Project settings. Returns false if there are no capability assets in the project or no capability profile is/are selected |
GenerateMissingCapabilitiesRequiredTooltip(params string[])
Generates a string message with a set of capability keys that are required for a building block to be enabled.
Declaration
public static string GenerateMissingCapabilitiesRequiredTooltip(params string[] capabilityKeys)
Parameters
Type | Name | Description |
---|---|---|
string[] | capabilityKeys | The capability keys which should be included in the message. |
Returns
Type | Description |
---|---|
string | The formatted string. |