Argon-Runtime-Setup: Difference between revisions

From Argon Documentation
Jump to navigation Jump to search
(Created page with "= Why is there a Runtime Setup = Argon lets you add Unity components to objects in your scenes in Blender. Some of these components need to run some extra machinery in your scene to be useful. For example, the Headline Display commands needs a mechanism for showing text on a UI document.")
 
No edit summary
Line 1: Line 1:
= Why is there a Runtime Setup =
= Why is there a Runtime Setup =
Argon lets you add Unity components to objects in your scenes in Blender.
Argon adds components to your objects.


Some of these components need to run some extra machinery in your scene to be useful.
Some of these components need to run extra machinery in your scene to be useful.


For example, the Headline Display commands needs a mechanism for showing text on a UI document.
For example, the Headline Display commands needs a mechanism for showing text on a UI document.
To get that mechanism, it asks an instance of '''SceneServices''' for an instance of '''IHeadlineDisplay'''.
So, you need:
* an instance of SceneServices in your scene
* an IHeadlineDisplay component to supply to SceneServices
Luckily, this is all set up for you already in the ARGON_DefaultPlayer.prefab. Just find it (under Assets >> Argon >> DefaultPlayer) and add it to your scene.
The DefaultPlayer prefab has an instance of SceneServices and an object with a IHeadlineDisplay component (named HeadlineFeedback).
The DefaultPlayer prefab has all of the components you need to make all of your Argon components work.

Revision as of 07:53, 5 April 2024

Why is there a Runtime Setup

Argon adds components to your objects.

Some of these components need to run extra machinery in your scene to be useful.

For example, the Headline Display commands needs a mechanism for showing text on a UI document.

To get that mechanism, it asks an instance of SceneServices for an instance of IHeadlineDisplay.

So, you need:

  • an instance of SceneServices in your scene
  • an IHeadlineDisplay component to supply to SceneServices

Luckily, this is all set up for you already in the ARGON_DefaultPlayer.prefab. Just find it (under Assets >> Argon >> DefaultPlayer) and add it to your scene.

The DefaultPlayer prefab has an instance of SceneServices and an object with a IHeadlineDisplay component (named HeadlineFeedback).

The DefaultPlayer prefab has all of the components you need to make all of your Argon components work.