From 52f2ef1f2471a2e1c29fca96255c04b222d9c848 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Mon, 14 Aug 2023 15:32:26 +0900 Subject: [PATCH] fix: fix typos --- Scripts/UIParticle.cs | 10 +++++----- Scripts/UIParticleRenderer.cs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Scripts/UIParticle.cs b/Scripts/UIParticle.cs index 5753609..b0a82ee 100644 --- a/Scripts/UIParticle.cs +++ b/Scripts/UIParticle.cs @@ -27,7 +27,7 @@ namespace Coffee.UIExtensions Auto, Primary, PrimarySimulator, - Reprica, + Replica, } [HideInInspector][SerializeField] internal bool m_IsTrail = false; @@ -44,7 +44,7 @@ namespace Coffee.UIExtensions [SerializeField] private List m_Particles = new List(); - [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; @@ -80,10 +80,10 @@ namespace Coffee.UIExtensions /// /// 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. /// public MeshSharing meshSharing { @@ -145,7 +145,7 @@ namespace Coffee.UIExtensions 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; } } /// diff --git a/Scripts/UIParticleRenderer.cs b/Scripts/UIParticleRenderer.cs index 03f61fa..de0823b 100644 --- a/Scripts/UIParticleRenderer.cs +++ b/Scripts/UIParticleRenderer.cs @@ -208,7 +208,7 @@ namespace Coffee.UIExtensions // 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.