Skip to content

Machine Name

Simon edited this page Aug 12, 2020 · 3 revisions

MachineName assets store machine names as ScriptableObjects. This enables the same machine name to be easily shared with multiple components.

To create a new MachineName asset, right-click in the Project window and select Create/UniCAVE/MachineName asset.

MachineName creation menu

Select this asset to set the machine name. Either type in the name you wish to use, or press the Get Local Machine Name button to use the name of local machine.

Empty MachineName

MachineName set with the local machine name

The machine name will be saved with the asset. Add a MachineName field to a script if it needs to use a machine name value. Scripts can get and set the machine name using the MachineName.Name property.

Clone this wiki locally