Search Unity

How to create a custom Renderer?

Discussion in 'Project Tiny' started by Deleted User, Dec 20, 2018.

  1. Deleted User

    Deleted User

    Guest

    I was doing an implementation of Spine for Canvas, but need a way to make the rendering step properly.

    My current implementation is manually get the canvas context using.
    Code (JavaScript):
    1.  
    2.      let context: CanvasRenderingContext2D = document
    3.                 .getElementById('UT_CANVAS')
    4.                 // @ts-ignore
    5.                 .getContext('2d');
    6.  
    But I need a real solution for this.
    Thanks in advance :)