First of all, I have joined Unity Technologies as a software developer!! This means I will be fixing some bugs, doing some code, and more. It’s an amazing place and I’m really happy.
For obvious reasons I cannot really talk about what I am currently working on inside Unity Technologies, but I will keep posting about my hobby projects, problems I’m facing, and code stuff
Unity has improved their 2d joints user interface, making my last post a bit redundant, however it was still a great learning experience and I will update the project soon ™ to remove code redundancies.
I have obtained a Razer OSVR Hacker Developer Kit, and am trying to get it to work with Steam VR, and may contribute to that project there. I like VR and open source, this is a good project.
I also created a ReactJS / THREE.js renderer (I had started working on this before joining Unity) and released it around a month ago, the reception was much better than I had expected, people are already using it for their projects! Even though it’s in alpha and I told them not to! Amazing! Here are some demos I made if you’re interested in that sort of thing: http://toxicfork.github.io/react-three-renderer-example/
This little snippet allows you to see which objects you are hovering over in the Unity3D hierarchy pane. It also shows which objects are being dragged.
Here’s the script. You will need to place this script into your Assets directory, inside the ‘Editor’ folder. If the ‘Editor’ folder does not exist, you need to create it.
How it works:
When the Unity3D editor loads, it calls the static constructor of this script. Then, the HighlighHelper hooks on to the scene view’s GUI callbacks, editor update callbacks, as well as the editor’s Hierarchy Pane’s item callbacks.
Whenever the Unity3D editor updates, the script checks whether the user is hovering over the hierarchy pane or not. If so, then it allows the window to get MouseMove callbacks. It’s hacky, but it works! Then, during the MouseMove events, the script checks if the mouse is inside the rectangle of the name label for any gameobject in the hierarchy, and if so, it notes down which object’s name is hovered over.
The scene view gui method then looks up if any gameobjects match that ‘instance ID’, and draws some circles around them. It does the same for dragged objects. I hope it helps! If you have any questions, please write it in the comments.
Update: I have just created a repository for the script here: https://github.com/toxicFork/Unity3D-HighlightHelper so it will be easier to track any changes or allow any pull requests.
Recently I have donated to the KenneyLand crowdfund and Kenney (www.kenney.nl) has sent me an asset pack containing a lot of spritesheets and other great assets. The spritesheets also came with XML files next to them. I currently use Unity3D as my main development tool and wanted to use these spritesheets for some of my game ideas.
I will now explain how I wrote a script to let me easily slice 2D sprites.
Site was down for a while, this was caused by an update to WordPress which revealed that I had installed a bad plugin or theme. After a fresh install, it’s back! 😀 Please do let me know if there are any broken links (there probably will be).