Skip to content
GeoPlayerRu edited this page Apr 13, 2021 · 2 revisions

NOTE THAT PAGE IS UNDER THE CONSTRUCTION

ModDev related questions

How to create new item?

To create new item use Modification class

Modification Modification = new Modification("Some name", "Brick");

And most important part is to setup some variables

Modification.Data.CategoryName = "Category"; //Set category (Props, Tools, etc.)
Modification.Data.Description = "Description"; //Set description
Modification.Data.Thumbnail = Modification.LoadSprite("Image.png"); //Set thumbnail
Modification.Data.SpawnAction += (Instance) => {
//Some actions
}

How to create connection point?

The anwser is very simple. You create new ConnectionPoint variable and assigning Utility.AddConnection()

ConnectionSystem.ConnectionPoint input1 = Utility.AddConnection(Instance,"Input1",Vector3.zero,ConnectionSystem.ConnectionDataType.Float);  

What is Action?

Action is variable or function that is a bunch of code. To use Action you need this:

()=>{//Code}

Clone this wiki locally