fix: fix typos
parent
e92b514624
commit
52f2ef1f24
|
@ -27,7 +27,7 @@ namespace Coffee.UIExtensions
|
||||||
Auto,
|
Auto,
|
||||||
Primary,
|
Primary,
|
||||||
PrimarySimulator,
|
PrimarySimulator,
|
||||||
Reprica,
|
Replica,
|
||||||
}
|
}
|
||||||
|
|
||||||
[HideInInspector][SerializeField] internal bool m_IsTrail = false;
|
[HideInInspector][SerializeField] internal bool m_IsTrail = false;
|
||||||
|
@ -44,7 +44,7 @@ namespace Coffee.UIExtensions
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
private List<ParticleSystem> m_Particles = new List<ParticleSystem>();
|
private List<ParticleSystem> m_Particles = new List<ParticleSystem>();
|
||||||
|
|
||||||
[Tooltip("Mesh sharing.None: disable mesh sharing.\nAuto: automatically select Primary/Reprica.\nPrimary: provides particle simulation results to the same group.\nPrimary Simulator: Primary, but do not render the particle (simulation only).\nReprica: render simulation results provided by the primary.")]
|
[Tooltip("Mesh sharing.None: disable mesh sharing.\nAuto: automatically select Primary/Replica.\nPrimary: provides particle simulation results to the same group.\nPrimary Simulator: Primary, but do not render the particle (simulation only).\nReplica: render simulation results provided by the primary.")]
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
private MeshSharing m_MeshSharing = MeshSharing.None;
|
private MeshSharing m_MeshSharing = MeshSharing.None;
|
||||||
|
|
||||||
|
@ -80,10 +80,10 @@ namespace Coffee.UIExtensions
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Mesh sharing.None: disable mesh sharing.
|
/// Mesh sharing.None: disable mesh sharing.
|
||||||
/// Auto: automatically select Primary/Reprica.
|
/// Auto: automatically select Primary/Replica.
|
||||||
/// Primary: provides particle simulation results to the same group.
|
/// Primary: provides particle simulation results to the same group.
|
||||||
/// Primary Simulator: Primary, but do not render the particle (simulation only).
|
/// Primary Simulator: Primary, but do not render the particle (simulation only).
|
||||||
/// Reprica: render simulation results provided by the primary.
|
/// Replica: render simulation results provided by the primary.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public MeshSharing meshSharing
|
public MeshSharing meshSharing
|
||||||
{
|
{
|
||||||
|
@ -145,7 +145,7 @@ namespace Coffee.UIExtensions
|
||||||
|
|
||||||
internal bool canRender
|
internal bool canRender
|
||||||
{
|
{
|
||||||
get { return m_MeshSharing == MeshSharing.None || m_MeshSharing == MeshSharing.Auto || m_MeshSharing == MeshSharing.Primary || m_MeshSharing == MeshSharing.Reprica; }
|
get { return m_MeshSharing == MeshSharing.None || m_MeshSharing == MeshSharing.Auto || m_MeshSharing == MeshSharing.Primary || m_MeshSharing == MeshSharing.Replica; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -208,7 +208,7 @@ namespace Coffee.UIExtensions
|
||||||
// No particle to render: Clear mesh.
|
// No particle to render: Clear mesh.
|
||||||
if (
|
if (
|
||||||
!isActiveAndEnabled || !_particleSystem || !_parent || !canvasRenderer || !canvas || !bakeCamera
|
!isActiveAndEnabled || !_particleSystem || !_parent || !canvasRenderer || !canvas || !bakeCamera
|
||||||
|| _parent.meshSharing == UIParticle.MeshSharing.Reprica
|
|| _parent.meshSharing == UIParticle.MeshSharing.Replica
|
||||||
|| !transform.lossyScale.GetScaled(_parent.scale3D).IsVisible() // Scale is not visible.
|
|| !transform.lossyScale.GetScaled(_parent.scale3D).IsVisible() // Scale is not visible.
|
||||||
|| (!_particleSystem.IsAlive() && !_particleSystem.isPlaying) // No particle.
|
|| (!_particleSystem.IsAlive() && !_particleSystem.isPlaying) // No particle.
|
||||||
|| (_isTrail && !_particleSystem.trails.enabled) // Trail, but it is not enabled.
|
|| (_isTrail && !_particleSystem.trails.enabled) // Trail, but it is not enabled.
|
||||||
|
|
Loading…
Reference in New Issue