Overview

Overview

Rather than just show an existing options class for an existing command, which you're able to see at any time by going through our code base, we instead want to show you how to make one from scratch. Throughout this Creating Your Own Command section, we will guide you through creating a new command: set-material. This command will allow us to specify a GameObject instance and the name of a material, and have it applied.

This tutorial will cover creating the Options and Logic classes. It will also go into some detail on creating a custom collection to store our materials that we want to assign. We'll then refine our command trough the use of rules and other attributes, before finishing off with creating the command prefab and some example uses.

Are you ready to begin?

Give Us Feedback!

Did you find what you were looking for?

We're always looking to improve our documentation to ensure clear, concise instructions and guidance, so please let us know and we'll try to do better!