- Home /
Can Unity 4.6 UI System be used for physics based gameplay?
Hello we are looking to develop a Unity 2D Physics based Side Scroll game. We want to use 9 sliced images for platforms but Unity2D Sprite Renderer does not provide that. However, Unity 4.6 UI does provide this functionality. Should we use this UI system to create platforms and place colliders on them? Should we use our main character as an image too and add rigidbody2D to it? Will anchoring or any other thing related to UI conflict with this functionality? Is it safe for us to use it? Thank you
Answer by KubaPrusak · May 29, 2015 at 04:32 PM
Technically if you add the same components to the UI (ie. colliders etc.) and remove components such as Button script then it would work. The only problem is that UI components have a UIPosition thingy instead of a standard Transform, so if you need to access the position of objects it will be different from using normal sprites.
Your answer
Follow this Question
Related Questions
Why wont my sprite renderer show when enabled? 0 Answers
Wall checking not working correctly 2 Answers
Rigidbody2D.Velocity = Vector2 not changing X Position 1 Answer
Why does poligon collider 2d restricts movement of box collider? 0 Answers
In unity 2D c# how to rotate an object like geometry dash? 1 Answer