mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-18 09:24:39 +01:00
57 lines
1.1 KiB
C#
57 lines
1.1 KiB
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace PigeonCoopToolkit.Effects.Trails
|
|
{
|
|
[Serializable]
|
|
public class PCTrailRendererData
|
|
{
|
|
public Material[] TrailMaterials;
|
|
|
|
public float Lifetime = 1f;
|
|
|
|
public bool UsingSimpleSize;
|
|
|
|
public float SimpleSizeOverLifeStart;
|
|
|
|
public float SimpleSizeOverLifeEnd;
|
|
|
|
public AnimationCurve SizeOverLife = new AnimationCurve();
|
|
|
|
public bool UsingSimpleColor;
|
|
|
|
public Color SimpleColorOverLifeStart;
|
|
|
|
public Color SimpleColorOverLifeEnd;
|
|
|
|
public Gradient ColorOverLife;
|
|
|
|
public bool StretchSizeToFit;
|
|
|
|
public bool StretchColorToFit;
|
|
|
|
public float MaterialTileLength;
|
|
|
|
public bool UseForwardOverride;
|
|
|
|
public Vector3 ForwardOverride;
|
|
|
|
public bool ForwardOverrideRelative;
|
|
|
|
[NonSerialized]
|
|
private TrailRenderer_Base.MaterialsContainer _materialsContainer;
|
|
|
|
public TrailRenderer_Base.MaterialsContainer GetMaterialsContainer()
|
|
{
|
|
if (_materialsContainer == null)
|
|
{
|
|
_materialsContainer = new TrailRenderer_Base.MaterialsContainer
|
|
{
|
|
materials = TrailMaterials
|
|
};
|
|
}
|
|
return _materialsContainer;
|
|
}
|
|
}
|
|
}
|