Showing posts from 2018

Where is Unity Log Files?

Log Files There might be times during development when you need to obtain information from the logs of the standalone player you’ve built, the target device, or the Editor. Usually you need to see these files when you have experienced a problem, to find out exactly where the problem occurred.
On macOS, the player and Editor logs can be accessed uniformly through the standard utility.
On Windows, the Editor logs are placed in folders which are not shown in the Windows Explorer by default. See below.
Editor To view the Editor log, select Open Editor Log in Unity’s Console window.

On macOS, all the logs can be accessed uniformly through the standard utility.
On Windows, the Editor log file is stored in the local application data folder \Unity\Editor\Editor.log, where is defined by CSIDL_LOCAL_APPDATA.
Note that on Windows and Linux standalones, the location of the log file can be changed (or logging suppressed). See documenttion on Command line arg…

How to Save and Load a Game in Unity

Games are getting longer and longer, with some having over 100 hours of content. It would be impossible to expect players be able to complete all of what a game has to offer in just one sitting. That’s why letting the player save their game is one of the most essential features your game should have — even if it’s just to keep track of their high scores.
But how does one create a save file and what should be in it? Do you need to use a save file to keep track of player settings too? What about submitting saves to the web so they can be downloaded later on a different device?
In this tutorial you will learn:
What serialization and deserialization are.What PlayerPrefs is and how to use it to save player settings.How to create a save game file and save it to disk.How to load a save game file.What JSON is and how you would use it. It is assumed that you have some basic working knowledge of how Unity works (such as being able to create and open scripts), but other than that every…

Resolving harmless binding errors in WPF

While developing WPF applications, you will notice a lot of binding errors being displayed in output window; like this
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.DataGrid', AncestorLevel='1''. BindingExpression:Path=CellsPanelHorizontalOffset; DataItem=null; target element is'Button' (Name=''); target property is'Width' (type 'Double') System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''. BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is'ComboBoxItem' (Name=''); target property is'HorizontalContentAlignment' (type 'HorizontalAlignment') System.Windows.Data Error: 4 : Cannot find source for binding with referenc…

Unity Volumetric Light Error on Mac OSX

When I get build from Unity for Mac OS X and run the game on Mac OSX, I get


Initialize engine version: 2017.3.0f3 (a9f86dcd79df)
GfxDevice: creating device client; threaded=1
2018-02-07 12:42:57.410 btm[28692:5744936] Color LCD preferred device: Intel HD Graphics 5000 (high power)
2018-02-07 12:42:57.410 btm[28692:5744936] Metal devices available: 1
2018-02-07 12:42:57.410 btm[28692:5744936] 0: Intel HD Graphics 5000 (high power)
2018-02-07 12:42:57.411 btm[28692:5744936] Forcing user selected device: Intel HD Graphics 5000 (high power)
Initializing Metal device caps: Intel HD Graphics 5000
Begin MonoManager ReloadAssembly
- Completed reload, in  0.137 seconds
WARNING: Shader Unsupported: 'Sandbox/VolumetricLight' - Pass '' has no vertex shader
ERROR: Shader Shader is not supported on this GPU (none of subshaders/fallbacks are suitable)WARNING: Shader Unsupported: 'Sandbox/VolumetricLight' - Setting to default shader.
WARNING: Shader Unsupported: 'Hidden/Bilater…

Top 5 Free Unity Assets

The Unity Asset Store is a treasure chest of awesome tools for building games. Most of the offers are paid, but did you know that there are some powerful and very useful assets released for free? Such quality solutions are not only friendly to budget-sensitive indie developers but often beat the paid offers in terms of usability. On top of all, the free Unity Assets are a great way to get started with serious Unity game development.
Here is our list of the Top 5 Best Free Assets on the Unity Store!
1. iTween – Free Unity Scripting Library. iTween is a free and feature-rich animation system for Unity. It is one of the first assets I personally add to a new game project. It grants you access to dozens of useful functions which help you animate the exposed (i.e. public) values of any component!

Let’s say you want to move an object along a path. One way to do that is to create waypoints (empty gameObjects) and then use iTween to move your object from one waypoint to the next.…

Unity Development: MonoDevelop vs Visual Studio

If you’ve ever researched the Unity MonoDevelop vs Visual Studio controversy on the programming forums, you already know how passionate developers can be about their favorite tools. Devotional praise and heated vitriol are spilling over the keyboards 🙂 . And since a lot of the posted opinions are contradictory, a starting developer in Unity can become anxious about which code editor is the right choice.

Let me put your mind at ease: it doesn’t matter all that much which IDE (integrated development environment) you start with. Yes, yes – this notion seems strange when the overwhelming consensus online is that there must be a Highlander type of battle to the death.
However, selecting a code editor really doesn’t need to be a soul-crushing dilemma. You won’t fail as a game developer for not using Visual Studio any more than you would fail as a novelist if you shrug off Microsoft Word.
Indeed, MonoDevelop and Visual Studio have their Pros and Cons. However, there is one import…

Unity Personal vs Unity Plus vs Unity Pro vs Enterprise

Should I Use a Free or Paid Unity LicenseWhich Unity license should I get? A reasonable question. Unity comes in several varieties and depending on your goals, you will need a different license. Two questions arise most frequently: 1) Should I get a paid version (Unity Personal vs Unity Plus)?
2) Is it worth investing in a Pro version (Unity Plus vs Unity Pro)?
Let’s do an overview of each license and make a quick comparison.
Unity Personal License The Unity Personal license is free, and as such seems the best deal of the four :). If you are completely new to Unity, starting with it is a no-brainer.
The free version is marketed as a tool for students and beginners. However, it still contains most of the features which make Unity such a great platform for game development. Most importantly, you get advantage of the full power of the Unity Game Engine. Also, with Unity Personal you can still export to all supported platforms.
The one key feature of the Unity Personal Lice…

Best Pathfinding Tools in Unity 3D

Unity NavMesh vs Apex Path vs A* Pathfinding ProjectUpdate June 2017: Unity 5.6 comes with improved NavMeshes! They are now component-based, allowing for multiple NavMeshes per scene. In addition, procedurally generated and dynamically loaded content is now supported – just generate the level and set the NavMesh to Bake! 😉
Hey fellow game developer, what kind of games do you want to make?
Do you dream of creating huge open worlds, full of complex and compelling characters? Do you want to give your players whole armies to engage in massive real-time battles? Or, alternatively, do you prefer to work on the fast-paced action of first person shooters?
Here Enters Unity Pathfinding The common trait of all these genres is that your AI units need to navigate the game world. Furthermore, they need to move efficiently and with purpose. Further still, the computer controlled units should not get stuck, rotate in a circle or bump foolishly into other objects! For an immersive player…

Run 2 Steam Accounts on One Computer

Need an extra DD account for storage space or want to run 2 steam games at once? Sandboxie makes it easy.

Intro Ever play a game and wish you could have a second account for extra space, use as AFK shop or be able to trade with someone without having to leave your game? Sandboxie makes it easy.

Sandboxie allows you to run a self contained copy of steam on your computer along side your main install. Sandboxie has many other uses but I found it to be very useful when needing to run my second DD account and my other computer was otherwise engaged.

This guide is designed to help walk you through the setup and be able to use another DD account, or any other game account, on the same computer as your main account.

DISCLAIMER: This may not work for all games.

NOTE: This guide was mostly put together by another player but he didn't care to be named. Will gladly give him all the credit for this when he doesn't mind being mentioned

Requirements An …

WPF Error 40 BindingExpression path error: property not found on 'object'

On XAML, I created a datatemplate with binding for an object called Skills.
And I set the datatemplate in my C# program on a ListViewItem like this:

DataTemplate template = (DataTemplate)this.FindResource("SkillListItem");
ListViewItem litem = new ListViewItem();
litem.ContentTemplate = template; 

And on visual studio I got this error:
WPF Error 40 BindingExpression path error: 'Name 'property not found on 'object' Skill

It is a strange error that can solve by changing
publicstringName;to thispublicstringName{get;set;}