blob: 5e3927b0f70f687dc1c50c82a6229d16a477ba81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
using System;
using Sirenix.OdinInspector;
using UnityEngine;
[Serializable]
public class ObjectParticle
{
public float size = 1f;
public AnimationCurve sizeOverTime = AnimationCurve.Linear(0f, 1f, 1f, 1f);
public float lifetime = 1f;
public float rotation;
public float randomRotation;
[FoldoutGroup("Color", 0)]
public Color color = Color.magenta;
[FoldoutGroup("Color", 0)]
public Color randomColor = Color.magenta;
[FoldoutGroup("Color", 0)]
public Color randomAddedColor = Color.black;
[FoldoutGroup("Color", 0)]
public float randomAddedSaturation;
[FoldoutGroup("Color", 0)]
public bool singleRandomValueColor = true;
public AnimationCurve alphaOverTime = AnimationCurve.Linear(0f, 1f, 1f, 1f);
}
|