File tree Expand file tree Collapse file tree 2 files changed +363
-21
lines changed Expand file tree Collapse file tree 2 files changed +363
-21
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ namespace Coffee.UIExtensions.Demos
6
6
public class Unmask_Demo : MonoBehaviour
7
7
{
8
8
[ SerializeField ] Unmask unmask = null ;
9
+ [ SerializeField ] Unmask [ ] smoothingUnmasks = new Unmask [ 0 ] ;
9
10
[ SerializeField ] Graphic transition = null ;
10
11
[ SerializeField ] Image transitionImage = null ;
11
12
[ SerializeField ] Sprite unity_chan = null ;
@@ -28,5 +29,13 @@ public void SetTransitionImage(bool flag)
28
29
var size = transitionImage . rectTransform . rect . size ;
29
30
transitionImage . rectTransform . sizeDelta = new Vector2 ( 150 , size . y / size . x * 150 ) ;
30
31
}
32
+
33
+ public void EnableSmoothing ( bool flag )
34
+ {
35
+ foreach ( var unmask in smoothingUnmasks )
36
+ {
37
+ unmask . edgeSmoothing = flag ? 1 : 0 ;
38
+ }
39
+ }
31
40
}
32
41
}
You can’t perform that action at this time.
0 commit comments