Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

what is the BitBlt equivalent in Unity

Discussion in '2D' started by drulz, Nov 25, 2015.

  1. drulz

    drulz

    Joined:
    Feb 21, 2015
    Posts:
    29
    in standard 2d native graphics API, there is the swiss knife function that is very usefull in making game, its the BitBlt or the bit Block transfer (DrawImage in HTML5) that has an equivalent in all native 2D renderer.

    what is its equivalent in unity?

    see this function, copy a specific rect from source image and paste/transfer that rect to a source image, this is very usefull for most of the stuff that are made in 2D.

    is there such equivalent in Unity?
    in unity Spriting is done manually thru sprite editor, but other stuff needs BitBlt too.
     
  2. JohnnyA

    JohnnyA

    Joined:
    Apr 9, 2010
    Posts:
    5,041
  3. GarBenjamin

    GarBenjamin

    Joined:
    Dec 26, 2013
    Posts:
    7,441
    There is none. I came from that same background of "all 2D drawing has a blit copy of some kind". You don't blit transfer anything in Unity for drawing. Well other than maybe some kind of special FX stuff as the post above described. There is no real 2D surface in Unity as far as I know. It is all 3D all the time. You don't actually draw anything yourself. You make game objects give them the appropriate renderer and that renderer component handles the drawing for you. It is a bit of a challenge to get used to things automagically drawing themselves when and how they want instead of when and how you want. But it does work out well in general.
     
    Last edited: Nov 27, 2015