Ilumisoft Docs
  • Products
  • Bundles
    • Ultimate Asset Bundle
  • Tools
    • Visual State Machine
      • Setup
      • Create your first State Machine
      • Open the Graph Editor
      • Create a State
      • Create a Transition
    • Scene Creator
    • Script Templates
      • Create Script from Template
      • Create a Custom Template
      • Add, Edit or Remove Templates
    • Startup Manager
      • Setup
      • How to Add Systems
      • How It Works
    • Volume Control
      • Setup
      • How to create volume sliders & toggles
      • How to create a volume driven AudioSource
      • How to use the Volume Control API
    • Color Control
    • Graphics Control
      • Getting Started
      • Writing Custom Settings
        • Example 1: Writing the Soft Particles Setting
        • Example 2: Writing the Shadow Setting
    • Game Action System
      • Getting Started
      • Components
        • Game Action Trigger
        • Game Action
        • Game Action Task
      • How To's
        • Creating custom tasks
  • Game Templates
    • Connect
    • Hex
    • Defuse
    • Merge Dice
    • Bubble Pop
    • Downhill Ride
  • Support
    • Help
Powered by GitBook
On this page

Was this helpful?

  1. Tools
  2. Script Templates

Create a Custom Template

Creating your own custom templates is super easy! Just create a .txt file and enter the code you want it to contain. Unity will then replace every occurrence of #SCRIPTNAME# with the name you enter when creating the script.

Here is an example of normal C# class with a constructor:

public class #SCRIPTNAME# 
{
    public #SCRIPTNAME#()
    {
    
    }
}

Want more examples? Check out the default templates coming with Script Templates!

Once you have created your template text file, you need to add it to your templates directory. Check out the next chapter to see how to do it!

PreviousCreate Script from TemplateNextAdd, Edit or Remove Templates

Last updated 4 years ago

Was this helpful?