Unity camera plugin save image data as bytes

  1. Create a texture2D by assigning the photo at the given path.
  2. Encode the photo to the byte array
  3. store the imgData in the byte array in the active case
  1. In the panel I want the photo to appear I am setting up some a new byte array and setting it to the active case byte array that was saved from the previous panel.
  2. Create a new Texture2D
  3. Use the LoadImage method to load an image into a texture, in this case I am using the byte array set up in step 1
  4. assigning the reconstructed image as the image texture in the panel.




Integration support and part-time game developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The Concept of Integration

Capstone — Part 1

SuperAnnotate updates July 2020

Service Mesh — Traffic Management Pattern

Kick start your Career as an Undergraduate

How we process and store terabytes of data

Python DB CRUD operations

How to find a database in 2021

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Daniel Kirwan

Daniel Kirwan

Integration support and part-time game developer

More from Medium

Integrating Google maps static API with Unity app

How I started learning game development as a full stack developer PART 1.

Learn to code by making a 2D space shooter game.

Creating a triple shot for my Player