# Output slot

Data can be output by declaring an output slot such as OutpotSlotInt.

## Example script

Create a TestOutputSlotBehaviour script file and write the following code.

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

    [AddComponentMenu("")]
    public class TestOutputSlotBehaviour : StateBehaviour
    {
    	public OutputSlotInt outputSlot;

    	public override void OnStateBegin()
    	{
    		outputSlot.SetValue(Random.Range(100, 200));
    	}
    }

When this script is added to the state of ArborFSM, it becomes as follows.

## Output slot class

- OutputSlotInt
- OutputSlotFloat
- OutputSlotBool
- OutputSlotGameObject
- OutputSlotString
- OutputSlotVector2
- OutputSlotVector3
- OutputSlotQuaternion
- OutputSlotRect
- OutputSlotBounds
- OutputSlotColor
- OutputSlotTransform
- OutputSlotRectTransform
- OutputSlotRigidbody
- OutputSlotRigidbody2D
- OutputSlotComponent
- OutputSlotLong
- OutputSlotCollider
- OutputSlotCollider2D
- OutputSlotCollision
- OutputSlotCollision2D
- OutputSlotRaycastHit
- OutputSlotRaycastHit2D
- OutputSlotUnityObject
- OutputSlotAny