This is the object that will hold the script that makes this project run. Change its Rotation Y field to 45 and set the scale to 5 for all three axes as shown in Figure 6.įigure 6: The Cube object’s Transform componentįinally, create an empty object by selecting the Create button then navigating to Create Empty. Set both its Position X and Position Y fields to 0. Navigate to 3D Object-Cube to create a cube object in the world. Start by clicking the Create button again in the Hierarchy. The user may wish to change the object from a simple cube to something else. The below example in Figure 5 places the font size variable at 30 and sets the alignment to the center. Finally, change any of the text properties you wish to make it easier to read. Then set the Width variable to 500 and Height to 150, this way there’s plenty of space for whatever text you wish to enter.įigure 4: Setting Text to the correct position and sizeĪfter this, create some placeholder text in the Text field. In the Inspector window set Pos X to -10 and Pos Y to 125.
The location can be wherever you choose, but Figure 4 shows how to place the text in the upper-middle of the screen. Next, you’ll need to position the text in a position where it can be easily seen. Choose UI->Text to make a text object like Figure 3. Go to the Hierarchy window and click the Create button. Start by creating some text on the screen.
Of course, without any objects to modify there’s no game to mod at all. Once you’ve done all that, create the project. Name your project BasicMod, specify a file path, and make sure it’s a 3D project. There’s nothing you need to do ahead of project creation, so just open Unity and make a new project as shown in Figure 1. Within Unity, you’ll be shown simple methods of allowing users to change the text in your game as well as changing the current mesh an object is using. In this article, you won’t learn how to make your game moddable to the level of a game like Skyrim, but you can learn some of the basics of implementing modding capabilities. There’s a reason so few games allow mods.
However, it should also be noted that allowing mods is a difficult task. Mods allow players to tweak a game to their liking, add more things to do in the game, or just provide a laugh by replacing the dragon with a cartoon pony. The power of a community and the ability to mod a game cannot be overstated. Some mods take it a step further by completely overhauling entire systems in the game such as the user interface or the character’s leveling mechanics. This modification can occur by changing the model a character normally uses, editing text in the game, or changing out a music track. You might occasionally hear about a game that can be ‘modded.’ But what does that mean? For starters, a mod is simply a short version of the word ‘modification.’ In the context of video games, this means someone has taken time to modify a certain aspect of the game they are playing. Basic Modding with Unity - Simple Talk Skip to content