Advanced User Tips and Tricks

Advanced User Tips and Tricks

Quick Navigation

  • If you have the Project view open, clicking the scene will show you where it is stored. Quick Navigation: clicking the scene.

  • Clicking the target icon will select the object in the hierarchy if it is a game object, or if you have the Project view open, will show you where it is stored. Quick Navigation: clicking the target icon.

  • Nodes can be quickly created by pressing your spacebar to bring up the Create Node menu. Type the name of the node you want to create and then press "Enter". Quick Navigation

Custom Nodes

Custom nodes can be created from the template below:

using System;
using GraphProcessor;
using SkillsVRNodes.Scripts.Nodes;
using UnityEngine;
 
[Serializable, NodeMenuItem("Custom Nodes/New Node", typeof(SceneGraph))]
public class CustomNode : ExecutableNode
{
    public override string name => "CustomNode"; // Name of node
    public override string icon => "IconName"; // File name of icon (Optional)
    public override Color color => new (0.81f, 0.22f, 0.22f); // Color of node header
 
    protected override void OnStart()
    {
        // Put code here for running your node
 
		// Run this when you want the next node to start
        CompleteNode();
    }
}

Any variables you add that are public will be shown on the node, unless it has the [HideInInspector] attribute.

The node menu item has two arguments:

  1. The location that the node will be displayed in the "Create Node" menu.
  2. The type of graph that this node can be attached to (optional).

If you want to use an icon, you will need to place it in a folder like so:

  • Resources
    • Icon
      • NewIcon.png

The OnStart method will run at the beginning of the node. You can run CompleteNode to finish the node.

If you want a delay for the completion of the node, you can use the code below using waitTime as the length of time in seconds.

WaitMonoBehaviour.Process(waitTime, CompleteNode);

Controller Helper Prefab

To create a controller tutorial, drag the controller tutorial prop into the scene.

  1. Add an Enable-Disable Prop node to your graph.
  2. Select the controller.
  3. Set your controller to "start disabled".

The controller will start disabled. The Enable Node will start it and it will play for 10 seconds before disabling itself.

Controller Helper Node

Controller Helper Prefab preview

Closed Captions

Closed Caption Preview

To use Closed Captions - Some of the nodes will now have a closed captions option - By ticking this you can use the Closed Caption for that system. The Closed Caption System has also been converted into its own .UnityPackage so external content houses can use it as well. Ask the CCK Team for access to this package, if only wanting the closed caption system in your own content framework.