Upload project files
This commit is contained in:
9
Editor/PrefabPainter/Model/AlignmentType.cs
Normal file
9
Editor/PrefabPainter/Model/AlignmentType.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Misaki.ArtToolEditor
|
||||
{
|
||||
public enum AlignmentType
|
||||
{
|
||||
Surface,
|
||||
Stroke,
|
||||
Object
|
||||
}
|
||||
}
|
||||
2
Editor/PrefabPainter/Model/AlignmentType.cs.meta
Normal file
2
Editor/PrefabPainter/Model/AlignmentType.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f772b54ba4b26684783b464429761c76
|
||||
15
Editor/PrefabPainter/Model/BrustSetting.cs
Normal file
15
Editor/PrefabPainter/Model/BrustSetting.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace Misaki.ArtToolEditor
|
||||
{
|
||||
public class BrustSetting
|
||||
{
|
||||
public float BrushSize = 1.0f;
|
||||
public float SplatSpacing = 0.0f;
|
||||
public float Density = 1.0f;
|
||||
//public AnimationCurve DensityFalloff = new() { keys = new Keyframe[2] { new(0, 1, 0, 0f, 0.33f, 0.33f), new(1, 0, -2.71698f, -2.71698f, 0.04166669f, 0.3333333f) } };
|
||||
|
||||
public bool GpuInstancing;
|
||||
public bool Gravity;
|
||||
public int PaintLayer = 1;
|
||||
public bool AvoidOverlap = true;
|
||||
}
|
||||
}
|
||||
2
Editor/PrefabPainter/Model/BrustSetting.cs.meta
Normal file
2
Editor/PrefabPainter/Model/BrustSetting.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 86238205cd9e2fa46b2d968712f138a8
|
||||
9
Editor/PrefabPainter/Model/PaintType.cs
Normal file
9
Editor/PrefabPainter/Model/PaintType.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Misaki.ArtToolEditor
|
||||
{
|
||||
public enum PaintType
|
||||
{
|
||||
Disable,
|
||||
Paint,
|
||||
Erase
|
||||
}
|
||||
}
|
||||
2
Editor/PrefabPainter/Model/PaintType.cs.meta
Normal file
2
Editor/PrefabPainter/Model/PaintType.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 62169afb2f6013f459419503b0ff9d54
|
||||
9
Editor/PrefabPainter/Model/ParentType.cs
Normal file
9
Editor/PrefabPainter/Model/ParentType.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Misaki.ArtToolEditor
|
||||
{
|
||||
public enum ParentType
|
||||
{
|
||||
None,
|
||||
Target,
|
||||
Custom
|
||||
}
|
||||
}
|
||||
2
Editor/PrefabPainter/Model/ParentType.cs.meta
Normal file
2
Editor/PrefabPainter/Model/ParentType.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d1b4396dd01848242910a05acbd0b1f2
|
||||
13
Editor/PrefabPainter/Model/RandomnessType.cs
Normal file
13
Editor/PrefabPainter/Model/RandomnessType.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
|
||||
namespace Misaki.ArtToolEditor
|
||||
{
|
||||
[Flags]
|
||||
public enum RandomnessType
|
||||
{
|
||||
None = 0,
|
||||
Position = 1 << 0,
|
||||
Rotation = 1 << 1,
|
||||
Scale = 1 << 2
|
||||
}
|
||||
}
|
||||
2
Editor/PrefabPainter/Model/RandomnessType.cs.meta
Normal file
2
Editor/PrefabPainter/Model/RandomnessType.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 13f48dca3ecc2a048897b24de62a947f
|
||||
8
Editor/PrefabPainter/Model/ReferencePointType.cs
Normal file
8
Editor/PrefabPainter/Model/ReferencePointType.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Misaki.ArtToolEditor
|
||||
{
|
||||
public enum ReferencePointType
|
||||
{
|
||||
Axis,
|
||||
BoundingBox
|
||||
}
|
||||
}
|
||||
2
Editor/PrefabPainter/Model/ReferencePointType.cs.meta
Normal file
2
Editor/PrefabPainter/Model/ReferencePointType.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 828353399e10eb847aa0dc512523b9b1
|
||||
27
Editor/PrefabPainter/Model/SourcePrefab.cs
Normal file
27
Editor/PrefabPainter/Model/SourcePrefab.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Misaki.ArtToolEditor
|
||||
{
|
||||
public class SourcePrefab
|
||||
{
|
||||
public bool Enabled = true;
|
||||
public Texture2D Icon;
|
||||
public GameObject Prefab;
|
||||
|
||||
public float Frequency = 1.0f;
|
||||
public AlignmentType Alignment;
|
||||
public ParentType Parent;
|
||||
public GameObject ParentObject;
|
||||
public float ObjectSpacing = 1.0f;
|
||||
public ReferencePointType ReferencePoint;
|
||||
public float SlopeFilter = 45;
|
||||
|
||||
public RandomnessType Randomness;
|
||||
public Vector3 PositionMin;
|
||||
public Vector3 PositionMax;
|
||||
public Vector3 RotationMin;
|
||||
public Vector3 RotationMax;
|
||||
public Vector3 ScaleMin = Vector3.one;
|
||||
public Vector3 ScaleMax = Vector3.one;
|
||||
}
|
||||
}
|
||||
2
Editor/PrefabPainter/Model/SourcePrefab.cs.meta
Normal file
2
Editor/PrefabPainter/Model/SourcePrefab.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e7f6438ee4d032d469a646aa2f17c1d9
|
||||
Reference in New Issue
Block a user