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

Unity and Game Development links (July 15th 2019)

Alexander Ameye made a tutorial about edge detection shaders with Shader Graph and how to use some Lightweight Rendering Pipeline customization to generate DepthNormals (Edge Detection Shader). Cyan made a blog post about Render Textures and how to read them in a C# script (Render Textures). Render Textures are stored...
Read more

GeneticSharp 2.6.0 - Blazor template

The GeneticSharp 2.6.0 is out. Blazor template Now we have 4 dotnet new templates, besides the GeneticSharpConsoleApp, GeneticSharpTspConsoleApp and GeneticSharpTspUnity3d already existent, a new template for a Blazor client app was added: GeneticSharpTspBlazorApp: dotnet new -i GeneticSharp.Templates dotnet new GeneticSharpTspBlazorApp -o TspBlazorApp cd TspBlazorApp dotnet run If you want to...
Read more

TSP with GeneticSharp and Blazor

In this post I will show how to use GeneticSharp and Blazor to solve the TSP (Travelling salesman problem). Introduction According to Wikipedia The travelling salesman problem (TSP) asks the following question:“Given a list of cities and the distances between each pair of cities, what is the shortest possible route...
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

Unity and Game Development links (July 8th 2019)

Sykoo released a YouTube video about the new Unity Terrain Tools package (Build Beautiful Terrains with Unity 2019! – New Terrain Tools Package). Stacey Haffner made a blog post about the new experience for Collaborate that they are designing, like new UI and Git command-line support (Collaborate Developer Diary #1:...
Read more

GeneticSharp in the Wild: Frixel

I started a series of posts about some outstanding scientific papers and projects using GeneticSharp. For this third post the choose one is the Frixel: 2D framing / pixel structural optimization. Introduction Frixel is a plugin for Rhinoceros 6, a 3D computer graphics and computer-aided design (CAD) application. A finite...
Read more

unitytips Museum

I recently started studying Blazor and last weekend I created this simple app that I called: #unitytips Museum, a collection of best #unitytips. You can access it directly in my site, in this url: http://diegogiacomelli.com.br/apps/unitytips-museum The #unitytips collection Every week all #unitytips retweeted by @unity3d will be included to the...
Read more

Unity and Game Development links (July 1st 2019)

Unity released a YouTube tutorial about how to create a portal effect in Lightweight Render Pipeline with Shader Graph (Making Portals with Shader Graph in Unity! (Tutorial)). Dilmer Valecillos posted a video on augmented reality while implementing a dragging feature with ray-casting (AR Foundation with Unity3d and Adding Dragging Functionality...
Read more

Starting an Unity3D project with GeneticSharp using dotnet new

In this post I will show how to use dotnet new command to start an Unity3D project with GeneticSharp. Introduction Sometime ago I created a NuGet package called GeneticSharp.Templates, this package allows developers to install GeneticSharp templates using the dotnet new command. Among the availables templates in GeneticSharp.Templates, there is...
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

Unity and Game Development links (June 24th 2019)

Sykoo made a video about the Buried Memories Volume 2: Serekh (Buried Memories: Serekh – New HDRP Asset Pack for Unity! (Overview)). Jean-Christophe Cimetiere wrote a post about how to use Unity as a library inside other apps (Add features powered by Unity to native mobile apps). Unity 2019.3 will...
Read more

GeneticSharp in the Wild: Context-Sensitive Code Completion

I decided to start a series of posts about some outstanding scientific papers and projects using GeneticSharp. For this second post the choose one is the Context-Sensitive Code Completion: Improving Predictions with Genetic Algorithms. Introduction The main motivation of the author about this paper was: Current methods of training code...
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

Unity and Game Development links (June 17th 2019)

Sebastian Lague made an ecosystem simulation with foxes and rabbits in Unity3d (Coding Adventure: Simulating an Ecosystem). Marius Horga wrote an overview about Metal 3 (Introducing Metal 3). Metal 3 was announced last week at WWDC 2019. Apple presented it along with relevant numbers: Metal can now make 100 times...
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

Unity and Game Development links (June 10th 2019)

Toulouse de Margerie wrote a post about how Unity natively maintains frame rates an how to make Unity follow a precise frame rate (Precise frame rates in Unity). Normally, out of the box, a Unity project will attempt to run your project as fast as possible. Frames will be rendered...
Read more

Evolution (or from prototype to game)

The importance of game prototype Several famous books and game designers cite how the prototyping phase of a new game project is an important time to lay out the foundations that will guide the whole game structure during its development project and, as well, to experiment with concepts and ideas...
Read more

Using a Sprite Mask to create a flashlight effect

When I was reading about the Sprite Mask on Unity Manual, I questioned my self "How long does it take to create a flashlight effect using the Sprite Mask?". The answer is: less than 2 minutes. You can check this by watching the video tutorial that I made showing how...
Read more

Unity and Game Development links (June 3th 2019)

Nick Davis wrote a post about how Unity recently teamed up with Autodesk and Texel Logic to create a mixed-reality experience to illustrate and understand the complex nature of airflow passing over and around an IndyCar (Simulating high-speed IndyCars in AR). Sykoo, online evangelist for Unity, published a video showing...
Read more

Coding an EditorWindow to create default animations from sprites

In this tutorial, we will learn how to coding an EditorWindow that creates Animation Clips and Animator Override Controller from Sprites. Introduction Create animation clips from sprites is quite a simple operation to perform on Unity: Your browser does not support the video tag. But in many cases, you need...
Read more

Publishing WebJobs with Azure Pipelines

Azure WebJobs are a great way to execute background process. Scenario In last days I’ve created a Azure Pipelines that publish WebJobs, but in our specific case our WebJobs were not being published to /site/wwwroot/App_Data/jobs/Continuous/<webjobs name>, because “reasons” our root web app is using ‘/site/www’ as folder. So, you should...
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

Unity and Game Development links (May 24th 2019)

Kristin Stock posted a video about how she is procedurally generating cities using Subdivsion in Unity. Dave Hunt and Yang-Hai Eakes made an introduction for the Animation Rigging preview package for Unity 2019.1. Set up procedural motion on animated skeletons at runtime. You can use a set of predefined animation...
Read more

Unity Avatar Mask and Animation Layers

In this tutorial we will learn how to use Avatar Mask and Animation Layers to combine multiple animations. Introduction Imagine we imported an animated 3D model from Asset Store, in our sample, we will use the incredible robot from the free package Sci Fi Warrior PBR HP by Dungeon Mason....
Read more

dotnet new templates for GeneticSharp

Now GeneticSharp has a NuGet package called GeneticSharp.Templates, this package allows you to install GeneticSharp templates using the dotnet new command. Installing the GeneticSharp.Templates Before you can use the dotnet new command to create the GeneticSharp projects from templates, you need to install it on your machine: dotnet new -i...
Read more

GeneticSharp v2.4.0 - New crossovers and TPL implementations

The GeneticSharp v2.4.0 is out. The additions of this version are the two new crossovers implementations and a new option of ITaskExecutor that use TPL. Crossovers Alternating-position (AP) The alternating position crossover operator (Larrañaga et al. 1996a) simply creates an offspring by selecting alternately the next element of the first...
Read more

jogosdaqui - um pouco de história, open source e colaboração (pt-BR)

Muitos não sabem, mas além de programar, sempre gostei de ajudar a divulgar a indústria brasileira de desenvolvimento de jogos. Criação do jogosdaqui Em 2005, junto com mais 3 amigos, foi fundado o site jogosdaqui, que era um site especializado em falar sobre os games desenvolvidos por empresas brasileiras. Esse...
Read more

GeneticSharp v2.2.0 - Sudoku sample

The GeneticSharp v2.2.0 is out. The additions of this version are the new whole sample and extensions showing how to use GeneticSharp to solve a Sudoku. The GeneticSharp.Extensions project receive those new features: Multiple MultipleChromosome Compound chromosome to artificially increase genetics diversity by evolving a list of chromosomes instead of...
Read more

GeneticSharp v2.1.0

The GeneticSharp v2.1.0 is out. Features Add constructor with values to FloatingPointChromosome #33 As it is now whenever you create an instance of FloatingPointChromosome, it will randomly create gene values. I have a case where I need to stop optimization at some time, save results to DB and resume it...
Read more

GeneticSharp Unity3d Samples released on Google Play

I published on Google Play the GeneticSharp Unity3d Samples. In this app you can see GeneticSharp running on Unity3d in three different samples: Car2D Based on famous BoxCar2D, this sample uses a genetic algorithm to create car designs to overcome road challenges, like gaps, hills, and obstacles. TSP The classic...
Read more

GeneticSharp Car2D

I made an Unity3D sample for GeneticSharp inspired by amazing BoxCar2D where a genetic algorithm tries to design 2D cars to overcome roads challenges. Introduction I was always amazed by the 2D cars designed by BoxCar2D and see how genetic algorithm make new and (probably) better cars each new generation...
Read more

GeneticSharp - Unity3d sample

I just pushed to GeneticSharp master branch the GeneticSharp.Runners.UnityApp. In this Unity3d project there are 3 samples: Car2D Based on famous BoxCar2D, this sample uses a genetic algorithm to create car designs to overcome road challenges, like gaps, hills, and obstacles. A post explaining this sample in detail will be...
Read more

TSP with GeneticSharp and Unity3D

In this post I will show how to use GeneticSharp and Unity3D to solve the TSP (Travelling salesman problem). Introduction According to Wikipedia “The travelling salesman problem (TSP) asks the following question: “Given a list of cities and the distances between each pair of cities, what is the shortest possible...
Read more

GeneticSharp v2.0.0 - .NET Core

The GeneticSharp v2.0.0 is out with support to .NET Standard 2.0 and .NET Framework 4.6.2. Introduction In march GenetichSharp start to support .NET Standard 2.0 in the 2.0.0-rc version. Two months have pass and in the meanwhile the community have time to test that release candidate version and now Unity3D...
Read more

DocsByReflection v1.0.13 - .NET Standard 2.0

The DocsByReflection v1.0.13 is out. If you don’t know what is DocsByReflection or what you can do with it, take a look in my previous post about it “Getting your code documentation at runtime”. .NET Standard 2.0 and .NET Framework 4.6 In this version DocsByReflection starts to support .NET Standard...
Read more

Porting GeneticSharp to .NET Core

The GeneticSharp v2.0.0-rc1 is out. In this version GeneticSharp starts to support .NET Standard 2.0 and .NET Framework 4.6.2. Porting to Introduction Sometime ago I started to porting GeneticSharp to .NET Core and today, after more than 40 hours of work, I finally finish it. Although GeneticSharp born as a...
Read more

GeneticSharp v1.2.0 - Sequence mutations

The GeneticSharp v1.2.0 is out. The additions of this version are the new sequence mutation operators: Displacement, InsertionMutation and Partial Shuffle (PSM). Displacement Mutation: a substring is randomly selected from chromosome, is removed, then replaced at a randomly selected position. Insertion Mutation: a gene is randomly selected from chromosome, is...
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

Function optimization with GeneticSharp

In this tutorial we will learn how to use GeneticSharp to optimize the inputs of math function and more about genetic algorithms meanwhile. Introduction I created GeneticSharp a long time ago because three main reasons: I needed a fast, extensible, multi-platform and multithreading C# genetic algorithm library to use in...
Read more

GeneticSharp v1.1.0 - Binary chromosomes

The GeneticSharp v1.1.0 is out. The greatest additions of this version are the binary chromosomes: FloatingPointChromosome and IntegerChromosome. Binary chromosomes can be directly used when your solution chromosome can be represented as numbers or a string representation of 0 and 1. A new sample has been added to the GeneticSharp.Runner.GtkApp,...
Read more

Buildron 2.0.0

After some months to test the v2.0.0-RC1 we are releasing the final version of Buildron mods support with this 2.0.0 version. Mods supports represents a great change in Buildron code structure, because we built a mods support that allow any developer add his own mods to Buildron. Mods available The...
Read more

Buildron SlackBotMod

Buildron is a build radiator to help software development teams to see the current status of their continous integration server and Slack is the omnipresent communication app for almost every developer in the world. For these reasons, I made a mod called Buildron.SlackBotMod that let you interact with Buildron through...
Read more

Sending a Slackbot message from Unity3d

I was looking for a way to send a message to a Slack channel using the Slackbot API. This is a pretty easy task to perform in C#, because there are some great client libraries implementations to the Slack API, like: SlackApi, MargieBot and SlackConnector. However, in the Unity3d world...
Read more

Creating a ConsoleMod to Buildron

In this post we’ll create a mod that adds a console window to Buildron and let you monitor its events. Our ConsoleMod will have 2 classes: ModController and Mod. ModController class ModController class will be a MonoBehaviour responsible to showing to the user a window where the Buildron events will...
Read more
Follow @giacomelli
Tutorials

News

Articles

Labs