ParameterReference

By declaring the ParameterReference association class in the field, you can refer to the parameter.

Example script

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
using UnityEngine;
using Arbor;

public class TestParameterReference : MonoBehaviour
{
	public IntParameterReference intParameter;

	void Start ()
	{
		if (intParameter.parameter != null)
		{
			Debug.Log(intParameter.parameter.name + " : " + intParameter.parameter.intValue);
		}
	}
}

When you add this script to GameObject, it becomes as follows.

Field Name Description
Container Reference ParameterContainer
By clicking SelectTypeIcon button you can select Constant or DataSlot.
(However, DataSlot can not be used except for script for Arbor node)
Parameter Parameters to be referred to
When Container type is DataSlot, name designation by character string.

For the getted Parameter, refer to the script reference.

Script Reference : Parameter