Skip to content

Commit

Permalink
fix: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Aug 15, 2023
1 parent e92b514 commit 52f2ef1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Scripts/UIParticle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public enum MeshSharing
Auto,
Primary,
PrimarySimulator,
Reprica,
Replica,
}

[HideInInspector][SerializeField] internal bool m_IsTrail = false;
Expand All @@ -44,7 +44,7 @@ public enum MeshSharing
[SerializeField]
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]
private MeshSharing m_MeshSharing = MeshSharing.None;

Expand Down Expand Up @@ -80,10 +80,10 @@ public override bool raycastTarget

/// <summary>
/// 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 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>
public MeshSharing meshSharing
{
Expand Down Expand Up @@ -145,7 +145,7 @@ internal bool canSimulate

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>
Expand Down
2 changes: 1 addition & 1 deletion Scripts/UIParticleRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public void UpdateMesh(Camera bakeCamera)
// No particle to render: Clear mesh.
if (
!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.
|| (!_particleSystem.IsAlive() && !_particleSystem.isPlaying) // No particle.
|| (_isTrail && !_particleSystem.trails.enabled) // Trail, but it is not enabled.
Expand Down

0 comments on commit 52f2ef1

Please sign in to comment.