@@ -8,26 +8,26 @@ A Lightweight, Flexible, Powerful **Unity Shader GUI** system.
8
8
9
9
Having been validated through numerous large-scale commercial projects, employing a succinct Material Property Drawer syntax allows for the realization of powerful Shader GUIs, substantially reducing development time, fostering ease of use and extensibility, and elevating the user experience for artists effectively.
10
10
11
- ![ 809c4a1c-ce80-48b1-b415-7e8d4bea716e] ( assets/809c4a1c-ce80-48b1-b415-7e8d4bea716e-16616214059841.png )
11
+ ![ 809c4a1c-ce80-48b1-b415-7e8d4bea716e] ( assets~ /809c4a1c-ce80-48b1-b415-7e8d4bea716e-16616214059841.png )
12
12
13
- ![ LWGUI] ( assets/LWGUI.png )
13
+ ![ LWGUI] ( assets~ /LWGUI.png )
14
14
15
15
16
16
17
- | ![ image-20240716183800118] ( ./assets/image-20240716183800118.png ) | ![ image-20240716184045776] ( ./assets/image-20240716184045776.png ) |
17
+ | ![ image-20240716183800118] ( ./assets~ /image-20240716183800118.png ) | ![ image-20240716184045776] ( ./assets~ /image-20240716184045776.png ) |
18
18
| ------------------------------------------------------------ | ------------------------------------------------------------ |
19
19
| A more powerful Gradient editor than UE, with support for both Shader and C# | Insert images directly into the ShaderGUI to support the display of complex documents without having to jump to the browser |
20
- | ![ image-20250314160119094] ( ./assets/image-20250314160119094.png ) | |
20
+ | ![ image-20250314160119094] ( ./assets~ /image-20250314160119094.png ) | |
21
21
| ** NEW: When recording material parameter animations in Timeline, automatically capture changes to Toggle's Keywords to enable switching material Keywords at runtime.** | |
22
- | ![ image-20220926025611208] ( ./assets/image-20220926025611208.png ) | ![ image-20230821205439889] ( ./assets/image-20230821205439889.png ) |
22
+ | ![ image-20220926025611208] ( ./assets~ /image-20220926025611208.png ) | ![ image-20230821205439889] ( ./assets~ /image-20230821205439889.png ) |
23
23
| The search bar can also filter for properties that have been modified | Right-click to paste the attribute value by type |
24
24
25
25
26
26
27
27
28
28
| With your sponsorship, I will update more actively. | 有你的赞助我会更加积极地更新 |
29
29
| --------------------------------------------------- | ------------------------------------------------------------ |
30
- | [ paypal.me/JasonMa0012] ( paypal.me/JasonMa0012 ) | ![ 723ddce6-fb86-48ff-9683-a12cf6cff7a0] ( ./assets/723ddce6-fb86-48ff-9683-a12cf6cff7a0.jpg ) |
30
+ | [ paypal.me/JasonMa0012] ( paypal.me/JasonMa0012 ) | ![ 723ddce6-fb86-48ff-9683-a12cf6cff7a0] ( ./assets~ /723ddce6-fb86-48ff-9683-a12cf6cff7a0.jpg ) |
31
31
32
32
33
33
<!-- ts-->
@@ -184,11 +184,11 @@ _enum ("KWEnum", float) = 0
184
184
185
185
Default result :
186
186
187
- ! [image - 20220828003026556 ](assets / image - 20220828003026556 .png )
187
+ ! [image - 20220828003026556 ](assets ~ / image - 20220828003026556 .png )
188
188
189
189
Then change values :
190
190
191
- ! [image - 20220828003129588 ](assets / image - 20220828003129588 .png )
191
+ ! [image - 20220828003129588 ](assets ~ / image - 20220828003129588 .png )
192
192
193
193
## Extra Drawers
194
194
@@ -264,7 +264,7 @@ Example:
264
264
265
265
Result :
266
266
267
- ! [image - 20220828003810353 ](assets / image - 20220828003810353 .png )
267
+ ! [image - 20220828003810353 ](assets ~ / image - 20220828003810353 .png )
268
268
269
269
270
270
@@ -359,15 +359,15 @@ Result:
359
359
360
360
The Property Value in the selected Preset will be the default value :
361
361
362
- ! [image - 20221122231655378 ](assets / image - 20221122231655378 .png )! [image - 20221122231816714 ](assets / image - 20221122231816714 .png )
362
+ ! [image - 20221122231655378 ](assets ~ / image - 20221122231655378 .png )! [image - 20221122231816714 ](assets ~ / image - 20221122231816714 .png )
363
363
364
364
##### Create Preset File
365
365
366
- ! [image - 20221122232307362 ](assets / image - 20221122232307362 .png )
366
+ ! [image - 20221122232307362 ](assets ~ / image - 20221122232307362 .png )
367
367
368
368
##### Edit Preset
369
369
370
- ! [image - 20221122232354623 ](assets / image - 20221122232354623 .png )! [image - 20221122232415972 ](assets / image - 20221122232415972 .png )! [image - 20221122232425194 ](assets / image - 20221122232425194 .png )
370
+ ! [image - 20221122232354623 ](assets ~ / image - 20221122232354623 .png )! [image - 20221122232415972 ](assets ~ / image - 20221122232415972 .png )! [image - 20221122232425194 ](assets ~ / image - 20221122232425194 .png )
371
371
372
372
373
373
@@ -389,7 +389,13 @@ public BitMaskDrawer(string group, string bitDescription7, string bitDescription
389
389
390
390
```
391
391
392
-
392
+ Example :
393
+ ```C #
394
+ [BitMask (Preset )] _Stencil (" Stencil" , Integer ) = 0
395
+ [BitMask (Preset , Left , Bit6 , Bit5 , Bit4 , Description , Bit2 , Bit1 , Right )] _StencilWithDescription (" Stencil With Description" , Integer ) = 0
396
+ ```
397
+ Result :
398
+ ! [](assets ~ / Pasted % 20image % 2020250321174432 .png )
393
399
394
400
### Texture
395
401
@@ -429,7 +435,7 @@ _mColor ("Multi Color", Color) = (1, 1, 1, 1)
429
435
430
436
Result :
431
437
432
- ! [image - 20220828003507825 ](assets / image - 20220828003507825 .png )
438
+ ! [image - 20220828003507825 ](assets ~ / image - 20220828003507825 .png )
433
439
434
440
#### Ramp
435
441
@@ -465,7 +471,7 @@ Example:
465
471
466
472
Result :
467
473
468
- ! [image - 20230625185730363 ](./ assets / image - 20230625185730363 .png )
474
+ ! [image - 20230625185730363 ](./ assets ~ / image - 20230625185730363 .png )
469
475
470
476
You ** must manually Save the edit results ** , if there are unsaved changes , the Save button will display yellow .
471
477
@@ -487,15 +493,15 @@ public class Test : MonoBehaviour
487
493
488
494
Result:
489
495
490
- ![ image-20240717104144821] ( ./assets/image-20240717104144821.png ) ![ image-20240717104206365] ( ./assets/image-20240717104206365.png )
496
+ ![ image-20240717104144821] ( ./assets~ /image-20240717104144821.png ) ![ image-20240717104206365] ( ./assets~ /image-20240717104206365.png )
491
497
492
498
Default display settings can be set using the LwguiGradientUsage() Attribute.
493
499
494
500
##### Gradient Editor
495
501
496
502
The new LWGUI Gradient Editor integrates with Unity's built-in [ Gradient Editor] ( https://docs.unity3d.com/Manual/EditingValueProperties.html ) and [ Curve Editor] ( https://docs.unity3d.com/Manual/EditingCurves.html ) , enabling more powerful features than UE's Gradient Editor.
497
503
498
- ![ image-20241126110012922] ( ./assets/image-20241126110012922.png )
504
+ ![ image-20241126110012922] ( ./assets~ /image-20241126110012922.png )
499
505
500
506
| Editor | Description |
501
507
| --------------------- | ------------------------------------------------------------ |
@@ -508,7 +514,7 @@ The new LWGUI Gradient Editor integrates with Unity's built-in [Gradient Editor]
508
514
| Curve Editor | Similar to Unity's built-in Curve Editor, it displays the XY 0-1 range by default, and you can use the scroll wheel to zoom or move the display range.<br />As you can see in the image below, the context menu has a number of functions for controlling the shape of the curve, and you can consult the [ Unity documentation] ( https://docs.unity3d.com/Manual/EditingCurves.html ) to get the most out of these functions. |
509
515
| Presets | You can save the current LWGUI Gradient as a preset and apply it anytime. These presets are common between different engine versions on the local computer, but are not saved to the project. |
510
516
511
- ![ image-20241126105823397] ( ./assets/image-20241126105823397.png ) ![ image-20241126112320151] ( ./assets/image-20241126112320151.png )
517
+ ![ image-20241126105823397] ( ./assets~ /image-20241126105823397.png ) ![ image-20241126112320151] ( ./assets~ /image-20241126112320151.png )
512
518
513
519
** Known issues:**
514
520
@@ -521,7 +527,7 @@ The new LWGUI Gradient Editor integrates with Unity's built-in [Gradient Editor]
521
527
522
528
``` c#
523
529
/// Draw an image preview.
524
- /// display name: The path of the image file relative to the Unity project, such as: "Assets /test.png", "Doc/test.png", "../test.png"
530
+ /// display name: The path of the image file relative to the Unity project, such as: "assets~ /test.png", "Doc/test.png", "../test.png"
525
531
///
526
532
/// group: father group name (Default: none)
527
533
/// Target Property Type: Any
@@ -531,7 +537,7 @@ public ImageDrawer(string group)
531
537
532
538
Result:
533
539
534
- ![ image-20240416142736663] ( ./assets/image-20240416142736663.png )
540
+ ![ image-20240416142736663] ( ./assets~ /image-20240416142736663.png )
535
541
536
542
### Vector
537
543
@@ -569,7 +575,7 @@ _mColor ("Multi Color", Color) = (1, 1, 1, 1)
569
575
570
576
Result :
571
577
572
- ! [image - 20220828003507825 ](assets / image - 20220828003507825 .png )
578
+ ! [image - 20220828003507825 ](assets ~ / image - 20220828003507825 .png )
573
579
574
580
575
581
@@ -604,7 +610,7 @@ float selectedChannelValue = dot(tex2D(_Tex, uv), _textureChannelMask);
604
610
605
611
606
612
607
- ![ image-20220822010511978] ( assets/image-20220822010511978.png )
613
+ ![ image-20220822010511978] ( assets~ /image-20220822010511978.png )
608
614
609
615
610
616
@@ -643,7 +649,7 @@ Example:
643
649
644
650
```
645
651
646
- ! [image - 20241127180711449 ](./ assets / image - 20241127180711449 .png )
652
+ ! [image - 20241127180711449 ](./ assets ~ / image - 20241127180711449 .png )
647
653
648
654
649
655
@@ -726,9 +732,9 @@ _float_helpbox ("Float with Helpbox%这是中文Helpbox%これは日本語Helpbo
726
732
727
733
```
728
734
729
- ! [image - 20221231221240686 ](assets / image - 20221231221240686 .png )
735
+ ! [image - 20221231221240686 ](assets ~ / image - 20221231221240686 .png )
730
736
731
- ! [image - 20221231221254101 ](assets / image - 20221231221254101 .png )
737
+ ! [image - 20221231221254101 ](assets ~ / image - 20221231221254101 .png )
732
738
733
739
Tips :
734
740
@@ -801,7 +807,7 @@ Example:
801
807
802
808
```
803
809
804
- ! [image - 20231007163044176 ](./ assets / image - 20231007163044176 .png )
810
+ ! [image - 20231007163044176 ](./ assets ~ / image - 20231007163044176 .png )
805
811
806
812
Tips :
807
813
@@ -854,11 +860,11 @@ Example:
854
860
855
861
```
856
862
857
- ! [image - 20231023010137495 ](./ assets / image - 20231023010137495 .png )
863
+ ! [image - 20231023010137495 ](./ assets ~ / image - 20231023010137495 .png )
858
864
859
- ! [image - 20231023010153213 ](./ assets / image - 20231023010153213 .png )
865
+ ! [image - 20231023010153213 ](./ assets ~ / image - 20231023010153213 .png )
860
866
861
- ! [image - 20231023010204399 ](./ assets / image - 20231023010204399 .png )
867
+ ! [image - 20231023010204399 ](./ assets ~ / image - 20231023010204399 .png )
862
868
863
869
## LWGUI Timeline Tracks
864
870
@@ -928,7 +934,7 @@ MaterialToggleUIDrawer(string keyword)
928
934
929
935
### Custom Header and Footer
930
936
931
- ![ image-20230821211652918] ( ./assets/image-20230821211652918.png )
937
+ ![ image-20230821211652918] ( ./assets~ /image-20230821211652918.png )
932
938
933
939
1 . Custom Headers and Footers enable you to integrate bespoke modules at the top or bottom of the ShaderGUI without altering LWGUI plugin code.
934
940
0 commit comments