From 07b1aca3f096a520cbae1d4cca18692fc69d2944 Mon Sep 17 00:00:00 2001 From: yum Date: Sat, 26 Oct 2024 15:51:30 -0700 Subject: Update cloning Optimize cloning logic, and make each clone rotate independently of the others when the explosion effect is active. --- Editor/tooner.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Editor') diff --git a/Editor/tooner.cs b/Editor/tooner.cs index deb2357..116fb4f 100644 --- a/Editor/tooner.cs +++ b/Editor/tooner.cs @@ -1136,9 +1136,13 @@ public class ToonerGUI : ShaderGUI { bc, "Number of clones"); bc = FindProperty("_Clones_dx"); - RangeProperty( - bc, - "x offset"); + RangeProperty(bc, "x offset"); + bc = FindProperty("_Clones_dy"); + RangeProperty(bc, "y offset"); + bc = FindProperty("_Clones_dz"); + RangeProperty(bc, "z offset"); + bc = FindProperty("_Clones_Scale"); + VectorProperty(bc, "Scale"); } EditorGUI.indentLevel -= 1; show_ui.RemoveAt(show_ui.Count - 1); -- cgit v1.2.3