Update demo

pull/55/head
mob-sakai 2019-03-11 14:40:53 +09:00
parent 1ac03df40f
commit 3a44222a30
3 changed files with 4943 additions and 3594 deletions

View File

@ -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; }

View File

@ -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