/*AUTO SCRIPT*/
/*AUTO SCRIPT*/
/*AUTO SCRIPT*/
/*AUTO SCRIPT*/ public void Invoke(Image2D val)
/*AUTO SCRIPT*/ {
/*AUTO SCRIPT*/ if (debug)
            {
/*AUTO SCRIPT*/ Debug.Log($"{name} event invoked: {val}");
            }
/*AUTO SCRIPT*/ ahoyEvent.Invoke(name, val);
/*AUTO SCRIPT*/                 //important to do this incase a listener removes its self from the list
/*AUTO SCRIPT*/ unityEventListeners.ToArray().ForEach(l => l.Invoke(name, val));
/*AUTO SCRIPT*/ assetEventListeners.ToArray().ForEach(l => l.Invoke(val));
/*AUTO SCRIPT*/ }
예제 #2
0
 public void Set(Image2D image)
 {
     if (debug)
     {
         Debug.Log($"Image To Texture2D - setting texture");
     }
     if (tex.width != image.width || tex.height != image.height)
     {
         tex.Resize(image.width, image.height);
     }
     tex.SetPixels(image.pixels);
     tex.Apply();
 }
/*AUTO SCRIPT*/
/*AUTO SCRIPT*/ public void Push(Image2D val)
/*AUTO SCRIPT*/ {
/*AUTO SCRIPT*/ array.Push(val);
/*AUTO SCRIPT*/ Invoke();
/*AUTO SCRIPT*/ }
예제 #4
0
/*AUTO SCRIPT*/ public void Log(Image2D val)
        {
/*AUTO SCRIPT*/ Debug.Log($"{prefix}: {val}");
/*AUTO SCRIPT*/ }