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 /
This question was closed Jul 24, 2019 at 04:17 PM by unity_j02W_-izRBhJLQ for the following reason:

Problem solved

avatar image
0
Question by unity_j02W_-izRBhJLQ · Jul 22, 2019 at 05:28 PM · cameragameobjectcanvasinvisible-object

Gameobject not showing: I can see only canvas

I can't see my gameObject (a sphere) in the Game View when I run the scene.

I can see it through my game camera, wich I tried to put on UI layer, but it didn't work.

I dragged the script on Canvasm Raw Image, Game Camera, everything, with no results.

The script that contains the sphere code is "Animazione". The other one is not important

alt text

Here i put the code for just one sphere:

 void Start()
 {
     sphere1 = GameObject.CreatePrimitive(PrimitiveType.Sphere);
 }
 //m.persone[0].frames[count].Joints[1] gets the coordinates >> it works, it's not the problem
 //k1 and k2 are just some scaling constant of Vector3 type
 void Update()
 {
         double x = m.persone[0].frames[count].Joints[1].x;
         double y = m.persone[0].frames[count].Joints[1].y;
         double z = m.persone[0].frames[count].Joints[1].z;
         sphere1.transform.position = new Vector3((float)x * 100, -(float)y * 100, (float)z * 100)+k1;
         sphere1.transform.localScale = k2;
 }
screenshot-83.png (267.5 kB)
Comment
Add comment · Show 3
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 mridudixit15 · Oct 27, 2020 at 10:55 AM 0
Share

hi , did you get solution

avatar image MikhailSimin · Oct 27, 2020 at 11:55 AM 0
Share

For those who're co$$anonymous$$g here from Google -- the problem isn't with your Camera. The problem is that your Canvas has a setting for "Render $$anonymous$$ode". Click your canvas in the Hierarchy, then in the Inspector find Canvas > Render $$anonymous$$ode > "Screen Space - Camera". Then make sure to set the "Render Camera" parameter to your camera object.

avatar image MikhailSimin · Oct 27, 2020 at 03:57 PM 0
Share

Another possible reason is that your Build Settings include a Scene that is not intentional. Check to make sure that you only include the scenes you want.

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

209 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 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 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 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 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

Previous scene's canvas stays on screen 1 Answer

'ScreenSpace-Camera' canvas: camera set at runtime doesn't update scale 0 Answers

GUI controlling other game objects 0 Answers

UI is invisible 1 Answer

Issues rotating a UI image while the canvas is parented to the Main Camera 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