summaryrefslogtreecommitdiffstats
path: root/Editor
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-10-26 15:51:30 -0700
committeryum <yum.food.vr@gmail.com>2024-10-26 15:52:43 -0700
commit07b1aca3f096a520cbae1d4cca18692fc69d2944 (patch)
tree652dccb4daeb2c9c93153d902ede60169605d1ef /Editor
parent94f37fa8dd94137a910df4ebc80f98db2d685f08 (diff)
Update cloning
Optimize cloning logic, and make each clone rotate independently of the others when the explosion effect is active.
Diffstat (limited to 'Editor')
-rw-r--r--Editor/tooner.cs10
1 files changed, 7 insertions, 3 deletions
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);