2 - My First FSComponent

To create your own component in FSMaker you will need minimal knowledge of C# and the unity api.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[System.Serializable, FSMenu("My Menu")/*this is for you menu*/]
public class MyFirstScript : FSBehaviour //This is FSBehaviour look
{
    public override bool enable_script => true; //SCRIPT ENABLED OR DISABLED (TRUE, FALSE)
    public override string script_name => "My First Component"; //YOUR COMPONENT NAME

    public override void on_Execute() //EVENT FOR EXECUTE
    {
        //YOUR CODE HERE
    }
}

Last updated