Upload project files

This commit is contained in:
Misaki
2024-09-16 00:08:10 +09:00
commit 0a4745662a
218 changed files with 13387 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
using System;
using Unity.Mathematics;
using UnityEngine;
namespace Misaki.ArtTool
{
[Serializable]
public class GridDistributionSetting
{
public int3 count = new(3, 3, 3);
public float3 spacing = new(1.0f, 1.0f, 1.0f);
public GridShape shape;
[Range(0.0f, 1.0f)]
public float fill = 1.0f;
public int DistributionCount => count.x * count.y * count.z;
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 117719617fb15994790913adcb8392ad

View File

@@ -0,0 +1,18 @@
using System;
using Unity.Mathematics;
namespace Misaki.ArtTool
{
[Serializable]
public class LinearDistributionSetting
{
public uint count = 10;
public uint indexOffset = 0;
public float3 positionSpacing = new(0.0f, 1.0f, 0.0f);
public float3 rotationSpacing = float3.zero;
public float3 scaleSpacing = new(1.0f, 1.0f, 1.0f);
public float3 stepRotation = float3.zero;
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: e489bd7add88acc4cb2bf8c30c851653

View File

@@ -0,0 +1,13 @@
using System;
using UnityEngine;
namespace Misaki.ArtTool
{
[Serializable]
public struct ObjectDistributionSetting
{
public MeshFilter meshFilter;
public int count;
public bool alignNormal;
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 818f2d0001f1e8f439e23e34ed6ae898

View File

@@ -0,0 +1,34 @@
using System;
using UnityEngine;
using UnityEngine.Splines;
namespace Misaki.ArtTool
{
[Serializable]
public class SplineDistributionSetting
{
public SplineContainer spline;
public int indexOffset;
public uint count = 10;
public float spacing = 1.0f;
public bool isSpacingMode;
public int DistributionCount
{
get
{
if (isSpacingMode)
{
return Mathf.RoundToInt(spline.CalculateLength() / spacing) + 1;
}
else
{
return (int)count;
}
}
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 7b5cfd6221b6b9a45bba99cefb806ccc