Dapper and the NVARCHAR(4000) arguments

Performing a profiler in the queries sended to the database you can see that in some cases Dapper is sending the string arguments as NVARCHAR (4000). This happen because Dapper cannot infer what is the exactly type and length of the table column on database. The downside of the NVARCHAR...
Read more

Can I send batch messages larger than 256 KB to Azure Service Bus?

The short answer NO! The long answer The Azure Service Bus maximum message size is 256 KB for Standard tier and 1 MB for Premium tier (https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). A simple solution to overcome this limitation is split the messages in blocks lower or equal to 256 KB size. Below is a...
Read more

Unity Toasty Notification

Last saturday I created the ToastyNotification package, a fun editor log interceptor that play Mortal Kombat’s Toasty easter-egg every time an error is logged. Setup Just install the ToastyNotification.package from the repository release page. Now every time your game raise an error on Unity’s editor console log, the Toasty Notifcation...
Read more

unitytips: Scene Preview Window

I created this window that extends the Unity 3D editor so you can preview the scenes by selecting them in the project window. Usage As can be seen from the video above the extension can be used in two ways after adding the Scene Preview window to the editor (via...
Read more

unitytips: Hierarchy Window GameObject Icon

You can show the game objects icons in hierarchy window using EditorGUIUtility.ObjectContent Code 400: Invalid request You can easily import this gist directly into your Unity 3D project using the Gist Importer The icons used in the video are Font Awesome icons and I used fa2png.io to convert them to...
Read more

unitytips: Hierarchy Window Layer Info

You can create a visual layer info to any component on your hierarchy window using EditorApplication.hierarchyWindowItemOnGUI: Code 400: Invalid request You can easily import this gist directly into your Unity 3D project using the Gist Importer
Read more

unitytips: Gist Importer

Using the Gist below you can easily import other Gists to your Unity project just copying the URL from browser: Code 400: Invalid request All Gists are imported to folder Assets/Gists
Read more

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 more

unitytips: Hierarchy Window Group Header

You can create a visual header to any group of components on your hierarchy window using EditorApplication.hierarchyWindowItemOnGUI: Code 400: Invalid request 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...
Read more

Using Tesseract 4 with C#

Recently I built a small tool to read the text of thousands of images. 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 the...
Read more

unitytips: MenuItem "CONTEXT/component"

You can create a context menu for any component using the "CONTEXT/<component>/<menu name>" on a MenuItem attribute: Code 400: Invalid request You can easily import this gist directly into your Unity 3D project using the Gist Importer
Read more

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 more

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 more

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 more
Follow @giacomelli
Tutorials

News

Articles

Labs