Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 voporak5 · Feb 04, 2016 at 03:34 AM · uiscale

Convert Canvas Scale to World Scale

I'm instantiating an object in 3D space that I want to have the same scale as one of my objects being drawn on the canvas for my camera.

Both objects use the same image, but that's irrelevant.

Thoughts?

Thanks!

Comment
Add comment · Show 6
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 itsharshdeep · Feb 04, 2016 at 04:29 AM 0
Share

Can you please post the screenshot. It will help us to figure it out easliy.

avatar image voporak5 itsharshdeep · Feb 04, 2016 at 08:14 PM 0
Share

alt text

The circle on the right was made in 3D space, the star on the bottom in the corner is a UI sprite.

I want the star in 3D space to have the same scale as the star on the UI canvas.

untitled.png (515.4 kB)
avatar image itsharshdeep voporak5 · Feb 05, 2016 at 04:17 AM 0
Share

Thanks for the screenshot. It helped a lot.

Now there are some question in my $$anonymous$$d Like , ''Why you need 3D and Ui image different ", "Can't We find/fix the same with using the same either using both 3D or Ui", "Is the star is co$$anonymous$$g right position, because It doesn't seems to be ???".. so I think I don't know the exact solution or approach, so I'm not the right person to answer.

But I want to try once ;)

Now the first idea which came in my $$anonymous$$d is :- One thing is that I will do is I will instantiate the same ( either both UI sprite or Both of them 3D) to achieve the solution ..

you might need to do some Research to find the solution

Sorry for not providing the exact solution :(

Show more comments
avatar image Sven76 · Jan 29, 2017 at 09:54 PM 0
Share

Hi, have you found a solution for this? I'm currently facing the same problem, I think.

avatar image voporak5 Sven76 · Jan 30, 2017 at 05:16 AM 0
Share

I think what I did was I just made the prefab for the star gameobject that was in 3D space be the same size as the star gameobject that was on the UI. And then I just made sure that the star on the UI was always the same size regardless of the device size.

This was quite a long time ago

1 Reply

· Add your reply
  • Sort: 
avatar image
-1

Answer by xxkajperxx · Feb 05, 2016 at 02:45 AM

to edit the scale of an 3D object you can go into the edit tab and go into scale tool

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 voporak5 · Feb 05, 2016 at 04:36 AM 0
Share

I know how to edit the scale. I'm trying to keep the scale of a 3D object the same as an object being drawn by my canvas through code.

If I were to just outright say that the scale of the 3D object (lossyScale) should be = to the scale of the object being drawn on the canvas (also lossyScale), then the 3D object would actually be really really tiny since the canvas is using pixels to draw the object. Pixels in 3D space however is ridiculously tiny.

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

44 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 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 avatar image avatar image

Related Questions

World Space UI Scale To Fit Screen At DIfferent Aspect Ratios 1 Answer

Layout error after crash has effected canvas scaling 1 Answer

Make camera crop scene instead of scale/stretch it 0 Answers

Change UI based off of screen size 0 Answers

How to scale an object relative to mouse position 1 Answer


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