Update demo
parent
1ac03df40f
commit
3a44222a30
|
@ -126,7 +126,6 @@ namespace Coffee.UIExtensions
|
|||
/// <summary>
|
||||
/// The graphic will be visible only in areas where no mask is present.
|
||||
/// </summary>
|
||||
[System.Obsolete("Use SetMaskInteractions method instead.")]
|
||||
public bool inverse
|
||||
{
|
||||
get { return m_MaskInteraction == kVisibleOutside; }
|
||||
|
|
|
@ -7,14 +7,17 @@ namespace Coffee.UIExtensions.Demos
|
|||
{
|
||||
public class SoftMask_Demo : MonoBehaviour
|
||||
{
|
||||
[SerializeField] RawImage softMaskBufferViewer;
|
||||
[SerializeField] SoftMask softMask;
|
||||
[SerializeField] RawImage[] softMaskBufferViewer;
|
||||
[SerializeField] SoftMask[] softMask;
|
||||
|
||||
|
||||
// Use this for initialization
|
||||
void OnEnable()
|
||||
{
|
||||
softMaskBufferViewer.texture = softMask.softMaskBuffer;
|
||||
for (int i = 0; i < softMask.Length; i++)
|
||||
{
|
||||
softMaskBufferViewer[i].texture = softMask[i].softMaskBuffer;
|
||||
}
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue