Software Tools and Addons
- May 5, 2015
- 2 min read
Here's some samples of some of the tools and addons I've created for existing software.
Unity3D Game Object Generator Editor Script
In Unity it's convenient to import a large amount of models at once, however turning those models into game objects can sometimes be quite tedius and time consuming. Usually you want to child your models to an empty and give that empty all the game object's functionality. This way you can easily swap the model with a different asset in the future really easily. While unity supports adding and removing component to/from multiple selected game objects at once, it doesn't support childing them all to their own empty parents, you'd have to run through each model and do that individually.
To speed up my work flow, I created an editor tool called Game Object Generator which allows you to select multiple models and generate game objects from them to the destination folder that you specify. It has options for adding common components too, like rigidbody, collider (using the model as the mesh), and whether that collider should be convex or not, and puts those components on their parents. No matter how many models you need game objects for, generating those game objects now never takes more than just a couple clicks.

The code for this utility is very straight forward and easily expandable, which I plan to take full advantage of in the future, adding more options for generating multiple game objects with identical functionalities. At the moment it only generates standard prop game objects, which is a convenient starting point for additional functionality none the less.
Game Maker Automatic Resolution Adjuster GML Script
Official Thread and Download: http://gmc.yoyogames.com/index.php?showtopic=548415
For a lot of games you have to spend some time adding support for multiple screen resolutions, often through some sort of options menu. For full screen applications, you usually want the resolution to be whatever the monitor's resolution is (and not stretch the image). I saw a lot of users on the forums asking how to go about doing this. So, I made a short Staff-Choice script in GML which automatically adjusts your game's screen resolution to the resolution of the output device.


Simply call the the script to any game object in your game, make sure the game object is in every room you want to adjust the resolution in, and call the script when the room starts (resolution always resets between rooms in Game Maker).
You can also pass in custom resolution values if you don't want it to automatically adjust to the monitor's resolution (for example, if you want to limit how large the resolution can be).

You can download the script here. The download includes a Game Maker project file with the script in it, and a simple project showing it in action. The project also shows how to position you're GUI relative to the view instead of using absolute position, so that no matter what you're resolution is, the GUI always stays in the same area of the screen.




















Comments