MeshをVoxel化してくれるUnityのアセット「unity-voxel」を試してみました。

マイクラ風というかレゴ風というか分かりませんが、良い感じの雰囲気になっている気がします。
リンク
GitHub – mattatz/unity-voxel: Mesh voxelization for Unity.
https://github.com/mattatz/unity-voxel
MeshをVoxel化してくれるUnityのアセット「unity-voxel」を試してみました。
マイクラ風というかレゴ風というか分かりませんが、良い感じの雰囲気になっている気がします。
GitHub – mattatz/unity-voxel: Mesh voxelization for Unity.
https://github.com/mattatz/unity-voxel
Unity 2018.2がリリースされました。
What’s new in Unity 2018.2 – Unity
https://unity3d.com/unity/whats-new/unity-2018.2.0
細かな点は調べていませんが、リリースノートを見て気になった部分はこちら。
とりあえずダウンロードして使ってみようと思います。
Unity – Download Archive
https://unity3d.com/get-unity/download/archive
C#でコンストラクタから引数の違うコンストラクタを実行する方法を調べてみました。
using System;
public class T
{
public T()
{
Console.WriteLine("T");
}
public T(int a)
{
Console.WriteLine("T: a=" + a);
}
public T(int a, string b) : this(a)
{
Console.WriteLine("T: b=" + b);
}
}
public class Example
{
static public void Main ()
{
T t1 = new T();
T t2 = new T(10);
T t3 = new T(123, "text");
}
}
実行結果
T
T: a=10
T: a=123
T: b=text
this
の代わりにbase
を使うことで基底クラスのコンストラクタを実行することもできるみたいです。
Using Constructors (C# Programming Guide) | Microsoft Docs
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/using-constructors