Quantcast
Channel: Latest Questions by dylanjosh
Browsing latest articles
Browse All 6 View Live

How do I have OnCollisionEnter only called once per object?

I have an object with a wheel collider attached. When it hits a fixed wall, I want to decrease some of its health. Psuedocode is: OnCollisionEnter(Collision collision) { if(collision.gameobject is...

View Article



Highlight more than one object in the scene, but select only one to move around

I sometimes need to align an object exactly with the collider of another one. But when I try to move the object, the other objects gizmos disappear, since it gets deselected. Anyway to make them both...

View Article

Why does my dynamically instantiated UI element have a different scale than...

My prefab has scale 2 but the instantiated version has scale 7. The code is extremely simple, only 3 lines. GameObject canvas = GameObject.Find("Canvas"); GameObject newLevelBlock =...

View Article
Browsing latest articles
Browse All 6 View Live




Latest Images