One more week left until Christmas. We have been in the spirit of giving and we hope you have also. Have a scroll through this weeks tips. Maybe you'll get that one tip your looking for to make Christmas that much more merry.
In that spirit we still have lots of great gifts to give out in our #UnityChristmas giveaway, if you haven't already, join up for your chance to win.
As always, be sure to give the sharer of your favorite UnityTip a shout out on social media.
Don't use the "public" access modifier just to edit a field from the Inspector.— ToughNutToCrack (@tntcproject) December 11, 2018
Use [SerializeField] attribute instead.
That's our @unity3d tips today.#unitytips #unity3d #gamedev #code #quality #tntc pic.twitter.com/I5D0rZaKsM
🚨Did you know!! 🚨— Kieran Colenutt (@kierancolenutt) December 11, 2018
You can use Multi Scene Editing to not only see the contents of several scenes in the same hierarchy, but overlay the contents of these scenes in the viewport display and edit them!
It blew my mind 🤯
Check this video out:#unitytips #gamdev #madewithunity pic.twitter.com/8IGpb8BmT7
#UnityTips Here is a nice one. Make sure your singleton gets initialized before all other game objects by using an attribute. I included complete singleton code with locking mechanism in case this is also useful to anyone :)#madewithunity #gamedev pic.twitter.com/8lqMF6KE2H— Binary Impact GmbH (@BinaryImpactG) December 11, 2018
Two small tips for project organisation:— Grg Games (@gamesgrg) December 11, 2018
If you have a lot of top-level objects in the hierarchy you can separate them by using empty game objects.
Use a folder with an underscore for your custom assets to separate them from all the Asset Store assets. #unitytips #gamedev pic.twitter.com/hfyChsAYZc
You can make sure that your game object has all the necessary components of the script by using "RequireComponent" to auto-add each used type/component if it doesn't exist.#unitytips #unity3d #gamedev pic.twitter.com/yfSdEJTAN7— Omar Balfaqih (@OBalfaqih) December 11, 2018
Discovery of the day. Naming a script "GameManager" gives it a unique icon. After some googling, I learnt that the name "Search" also gives you a unique icon. There might be even more.@unity3d #unity3d #unity2d #UnityTips pic.twitter.com/x2VxPQQGdD— MegaChibisX (@MegaChibisX) December 12, 2018
Use CultureInfo.InvariantCulture when parsing string data as numbers to ensure the locale is ignored. Prevents FormatException errors in regions that would otherwise look for "," as the decimal separator. Works for ToString() too. Fix in next build ;) #UnityTips #gamedev #csharp pic.twitter.com/gfe1WJ8n22— CityGen3D (@CityGen3D) December 12, 2018
#unitytips you can lerp between the project matrix of two cameras to get transitions and effects such as perspective to ortho, dont forget to also set the properties of the camera to the new matrix: m_camera.projectionMatrix = Mathf.Lerp(cam1Mat, cam2Mat); pic.twitter.com/J15ZicLizJ— Shahriar Shahrabi (@IRCSS) December 15, 2018
Rucksack is the most flexible and extensible single and multiplayer inventory solution with UNet support that enables you to easily setup player inventories, NPC inventories, banks, premium shops and much more!
Odin puts your Unity workflow on steroids, making it easy to build powerful user-friendly editors for you and your entire team.
With an effortless integration that deploys perfectly into pre-existing workflows, Odin allows you to serialize anything and enjoy Unity with 80+ new inspector attributes, no boilerplate code and so much more!
Prior to Devdog, I ran an online games industry news media for and about Nordic game developers for nearly two years.
During that time, I often reached out to new game developers directly, apart from interviewing the ones who sent a press release directly to me.
A few weeks ago, we bought a Unity Asset that really let us down.
In developing our own assets, we spend a lot of time on the Asset Store, researching the market and getting inspired.
Item Collections in Inventory Pro are powerful collections that can contain items, stack, unstack, merge items and much, much more.
As we'll soon see, however, these features aren't only useful when creating a traditional RPG inventory system, but can be used in many aspects of your game.
We're a developer and publisher of best-in-class tools and asset for the Unity game engine. We develop and sell but also publish products like Odin for talented developers and artists around the world.