FSMaker Documentation
  • Downloading FSMaker
  • Tutorials
    • 1 - My First FPS
    • 2 - My First FSComponent
    • 3 - How Change Scene
  • FS CLASS
    • FS VARIABLES
    • FS BEHAVIOURS
Powered by GitBook
On this page
  1. Tutorials

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
    }
}
Previous1 - My First FPSNext3 - How Change Scene

Last updated 1 year ago