unitytips: Gist Importer
Using the Gist below you can easily import other Gists to your Unity project just copying the URL from browser:
Code
All Gists are imported to folder Assets/Gists
Read "unitytips: Gist Importer"
unitytips: Changing the style of the Hierarchy Window Group Header
In my last #unitytips I demonstrated how you could create a visual header to any group of components on your hierarchy window using EditorApplication.hierarchyWindowItemOnGUI. Now I’m improving it allowing you to customize its style. To change the style, you just need to edit the values of the HierarchyWindowGroupHeaderSettings in the...
Read "unitytips: Changing the st..."
unitytips: Hierarchy Window Group Header
You can create a visual header to any group of components on your hierarchy window using EditorApplication.hierarchyWindowItemOnGUI: Code You can easily import this gist directly into your Unity 3D project using the Gist Importer Any GameObject with name that starts with “—” will be considered a group header You can...
Read "unitytips: Hierarchy Windo..."
Using Tesseract 4 with C#
Recently I built a small tool to read the text of thousands of images. Introduction A common technique to extract text from images is know as OCR (Optical character recognition) and the best implementation, that I Know, is called Tesseract. When a I started to build the tool, I used...
Read "Using Tesseract 4 with C#"
unitytips: MenuItem "CONTEXT/component"
You can create a context menu for any component using the "CONTEXT/<component>/<menu name>" on a MenuItem attribute:
Code
You can easily import this gist directly into your Unity 3D project using the Gist Importer
Read "unitytips: MenuItem "CONTE..."
Easing2Curve: An editor window to create animation curve from easing functions
I’ve coded an EditorWindow to create an AnimationCurve using easing functions that define how much a value changes over time. $# Introduction There are many classic easing functions, such as: InQuad, OutElastic, InOutSin, and InOutBounce. All of these are functions that have a time input parameter and a return value...
Read "Easing2Curve: An editor wi..."
Using an AssetPostprocessor + EditorWindow to keep assets organized on Unity projects
I created an AssetPostProcessor and an EditorWindow to validate if assets are in the right folder and help the Unity projects to keep organized. Introduction There are many ways to structure folders in a Unity project, but most common ones are cited by the Unity Learn tutorial: Large Project Organisation:...
Read "Using an AssetPostprocessor + Ed..."
A Sorting Layer Debugger for Unity
While I was reading about 2D Sorting and Sorting Layers on Unity Manual I came up with the idea of creating a custom editor window to see which sorting layer the sprites on the scene are using. In the video above you can see the Sorting Layer Debugger been used...
Read "A Sorting Layer Debugger for Unity"
Unity3D ScenePreview inspector
I’m working in a new game prototype and in this process I was creating some experimental levels to test the mechanics, but by the name of scene I was having dificult to remember which mechanic the level was about and I had to open each level to discover that one...
Read "Unity3D ScenePreview inspector"
Testing js-dos
Recenlty I discovered the project Emscripten: Emscripten is an LLVM-to-JavaScript compiler. It takes LLVM bitcode - which can be generated from C/C++, using llvm-gcc (DragonEgg) or clang, or any other language that can be converted into LLVM - and compiles that into JavaScript, which can be run on the web...
Read "Testing js-dos"