Capture() public static méthode

public static Capture ( DisplayObject target, RenderTexture texture, Vector2 offset ) : void
target DisplayObject
texture UnityEngine.RenderTexture
offset Vector2
Résultat void
Exemple #1
0
 void Capture()
 {
     if (this._ui != null)
     {
         CaptureCamera.Capture(this.container, this.texture);
     }
 }
 void Capture()
 {
     CaptureCamera.Capture(this.container, _texture, Vector2.zero);
     if (_renderer != null)
     {
         _renderer.sortingOrder = container.renderingOrder;
     }
 }
Exemple #3
0
        void Capture()
        {
            Vector2 offset = new Vector2(_paintingMargin.left, _paintingMargin.top);

            CaptureCamera.Capture(this, (RenderTexture)paintingGraphics.texture.nativeTexture, offset);

            _paintingFlag = 2;             //2表示已完成一次Capture
            if (onPaint != null)
            {
                onPaint();
            }
        }