You might be familiar with the workflow that all of your game scripts are working only when you hit the Play button. Did you know that you can force some scripts to be running even when you’re in the edit mode? Why would you do that? I mean that you may have player scripts, enemies scripts, weapons […]
Month: May 2015
Console log can show you which object is the creator
Most probably you already know about Debug.Log() function and its variations, but did you know that you can use it to find a particular object on the scene? Why would you do that? For instance, let’s say that you’re creating a shooting game. When a player shoots the object, you want to check if the bullet hits […]
Hold the Ctrl key to snap objects to the grid
Did you know that when you hold the Ctrl key in the Scene view while moving the object its position will snap to the grid? [gfycat data_id=”DazzlingCautiousAfricanjacana”] You can fine-tune your Snap settings by selecting Edit -> Snap Settings from the main menu. As you can see, you can not only snap object position, but scale and […]