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