Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by WaterMinecraft · Apr 03, 2015 at 01:20 AM · canvasimage

RealTime image put on a Canvas

Just wondering if I could take an image from a camera that is viewing only an object on a different layer and take that, convert it to an image and put that on a canvas?

Initially I was just trying to use my camera to overlay my image onto the canvas, but this is not seeming to work. Thank you!

~WM

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by DiegoSLTS · Apr 03, 2015 at 01:58 AM

Yes, you can. Search for "render textures". You create a render texture in your hierarchy (or at runtime with code), then set that render texture as the render target of your camera.

Also, you need a "Raw Image" component instead of an "Image" one, that should have a reference to the render texture.

This link talks about RenderTexture: http://docs.unity3d.com/Manual/class-RenderTexture.html

This one talks about RawImage: http://docs.unity3d.com/Manual/script-RawImage.html

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image WaterMinecraft · Apr 05, 2015 at 05:08 AM 0
Share

Thank you so much! Sorry for the late comment, just wanted to figure out all the kinks so I didn't have to ask more questions! Thank you!

avatar image
1

Answer by GameDev_Chuck · Apr 03, 2015 at 04:02 AM

This video from the live training courses goes over this exact subject and provides an example:

https://youtu.be/9ll6UP-kG40?t=3513

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image WaterMinecraft · Apr 05, 2015 at 05:08 AM 0
Share

Also, thank you! The demonstration was a great visual help! ^.^

avatar image unity_K6gqfuUydhDcsA · Sep 28, 2020 at 10:57 AM 0
Share

Hi, has anyone else the problem, that when you try deploy the solution from the video, it only works in the editor, not the build? sadly that is my case... :(

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Need Mask Shader . 0 Answers

How to have TextMesh Pro text appear above image? 0 Answers

what will happen if i use SpriteRenderer component in a Canvas Instead of Image component ? 0 Answers

Detecting onDrag over UI images 1 Answer

My unity image isn't showing up, what gives? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges