From fb5cedc575bc9a6b1fbb80cbe5421a5024cbd863 Mon Sep 17 00:00:00 2001 From: Saas Date: Fri, 19 Sep 2025 16:32:59 +0200 Subject: [PATCH 1/2] make particle age/ lifetime nodes more clear --- Source/Editor/Surface/Archetypes/Particles.cs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Source/Editor/Surface/Archetypes/Particles.cs b/Source/Editor/Surface/Archetypes/Particles.cs index 5b8c05381..3747e2a60 100644 --- a/Source/Editor/Surface/Archetypes/Particles.cs +++ b/Source/Editor/Surface/Archetypes/Particles.cs @@ -436,10 +436,11 @@ namespace FlaxEditor.Surface.Archetypes new NodeArchetype { TypeID = 102, - Title = "Particle Lifetime", - Description = "Particle lifetime (in seconds).", + Title = "Total Lifetime", + Description = "Total particle lifetime (in seconds), assigned when the particle is created. Always the same, no matter the particles age.", + AlternativeTitles = new[] { "Age" }, Flags = NodeFlags.MaterialGraph | NodeFlags.ParticleEmitterGraph, - Size = new Float2(200, 30), + Size = new Float2(180, 30), Elements = new[] { NodeElementArchetype.Factory.Output(0, string.Empty, typeof(float), 0), @@ -449,9 +450,10 @@ namespace FlaxEditor.Surface.Archetypes { TypeID = 103, Title = "Particle Age", - Description = "Particle age (in seconds).", + Description = "Particle age (in seconds). How long the particle has been alive since it was created.", + AlternativeTitles = new[] { "Lifetime" }, Flags = NodeFlags.MaterialGraph | NodeFlags.ParticleEmitterGraph, - Size = new Float2(200, 30), + Size = new Float2(170, 30), Elements = new[] { NodeElementArchetype.Factory.Output(0, string.Empty, typeof(float), 0), @@ -533,9 +535,10 @@ namespace FlaxEditor.Surface.Archetypes { TypeID = 110, Title = "Particle Normalized Age", - Description = "Particle normalized age to range 0-1 (age divided by lifetime).", + Description = "Particle normalized age represented as from 0 (max lifetime) - 1 (max age) (age divided by lifetime).", + AlternativeTitles = new[] { "Lifetime" }, Flags = NodeFlags.MaterialGraph | NodeFlags.ParticleEmitterGraph, - Size = new Float2(230, 30), + Size = new Float2(250, 30), Elements = new[] { NodeElementArchetype.Factory.Output(0, string.Empty, typeof(float), 0), From 0917a743cd8d91ca56eadf710f538dc81b146f34 Mon Sep 17 00:00:00 2001 From: Saas Date: Sun, 21 Sep 2025 17:07:13 +0200 Subject: [PATCH 2/2] Re- add particle prefix and improve some descriptions --- Source/Editor/Surface/Archetypes/Particles.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Editor/Surface/Archetypes/Particles.cs b/Source/Editor/Surface/Archetypes/Particles.cs index 3747e2a60..59af7af5e 100644 --- a/Source/Editor/Surface/Archetypes/Particles.cs +++ b/Source/Editor/Surface/Archetypes/Particles.cs @@ -436,11 +436,11 @@ namespace FlaxEditor.Surface.Archetypes new NodeArchetype { TypeID = 102, - Title = "Total Lifetime", - Description = "Total particle lifetime (in seconds), assigned when the particle is created. Always the same, no matter the particles age.", + Title = "Particle Total Lifetime", + Description = "Total particle lifetime (in seconds) at the time when the particle was created. Always the same, no matter the particles age.", AlternativeTitles = new[] { "Age" }, Flags = NodeFlags.MaterialGraph | NodeFlags.ParticleEmitterGraph, - Size = new Float2(180, 30), + Size = new Float2(250, 30), Elements = new[] { NodeElementArchetype.Factory.Output(0, string.Empty, typeof(float), 0), @@ -535,7 +535,7 @@ namespace FlaxEditor.Surface.Archetypes { TypeID = 110, Title = "Particle Normalized Age", - Description = "Particle normalized age represented as from 0 (max lifetime) - 1 (max age) (age divided by lifetime).", + Description = "The normalized age of the particle, represented as 0 (max lifetime) to 1 (max age). (Same as age divided by lifetime.)", AlternativeTitles = new[] { "Lifetime" }, Flags = NodeFlags.MaterialGraph | NodeFlags.ParticleEmitterGraph, Size = new Float2(250, 30),