Deploying a T4 Template with dotnet pack
In this post I will show how to deploy a T4 Template to a target project using a NuGet package built with dotnet CLI pack command. Introduction Recently I had to distribute a T4 template inside a NuGet package, so developers who installed the NuGet package would get, in addition...
Read "Deploying a T4 Template with dot..."
Publishing a .NET Core project to SonarCloud with Cake
In this post I will show how to use Cake to build and test a .NET Core project and then publish the results to SonarCloud. Introduction Cake (C# Make) is a cross-platform build automation system with a C# DSL for tasks such as compiling code, copying files and folders, running...
Read "Publishing a .NET Core project t..."
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 "TSP with GeneticSharp and Blazor"
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 "Starting an Unity3D project with..."
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 "Using a Sprite Mask to create a ..."
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 "Coding an EditorWindow to create..."
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 "Unity Avatar Mask and Animation ..."
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 "TSP with GeneticSharp and Unity3D"
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 "Function optimization with Genet..."
Sending a Slackbot message from Unity3d
I was looking for a way to send a message to a Slack channel using the Slackbot API. Introduction 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...
Read "Sending a Slackbot message from ..."