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

Introduce SUSE Enterprise Storage 6 (part 1)

Done editing Object-oriented Programming in R

Optimizing Flow of Work Through a Software Development Team

In context translation with Respresso — Respresso Blog

5 Best Google Cloud Digital Leader Certification Courses for Beginners in 2022

5 Best Google Cloud Digital Leader Certification Courses for Beginners

Automatic release process in Android: A Personal Story

Freshservice- Azure DevOps Integration app Installation guide

Service Application: AWS Part

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

Mobile Applications In Unity — Rainy Day Insurance: System.Serializable, Defining A Case

Using the Unity Animation System (Game Dev Day 59)

Install Unity’s new input system

How to fetch data from API in Unity