Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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 Lairinus · Jul 05, 2015 at 04:48 PM · animation3dspritesstupid

Transforming 3D game to 2D - Sprites / Animation

Hey guys,

I made a 3D prototype that turned into more than a prototype. I have basic textured cubes for the ground and basic textured cubes for the characters. The original plan was to make everything 3D but I recently made a contact who is amazing at 2D art, so I wanted to go with a 2D style instead.

I made a bunch of levels and set up almost all of the scripts, and the only thing that remains is the art lol. I went a little overboard here, so please forgive me.

I am using an orthographic camera currently, and I have one main question with one sub-question.

1 - Will I face any serious challenges if I delete the mesh renderers and use sprites instead? 2 - How does one scale down a sprite to fit the bounds of a GameObject?

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by CarterG81 · Jul 05, 2015 at 05:13 PM

1) I know this isn't the answer you want, but there isn't an easy answer for this question. No one will know this. Others don't have access to the inner workings of your project (nor would give the time to learn all of it) and even if they did know it inside and out they still might not be able to identify future problems. Most people just deal with problems they didn't foresee as they come. "Problems" is what game programming (and to a lesser extent gamedev as a whole) is all about. Creating software is mostly problem solving. You have a "problem" and have to find a solution. Experienced programmers may be more likely to foresee problems, but only in theory- not always in practice.

In the context of "serious challenges" anyway. There will probably be easy problems to fix or code to change, but I'm not sure about the quirks of changing them. Although with Puppet2D I convert Sprites to Meshes and it works without any issue.

2) Adjust the Transform Scale?

Unless I'm mistaken, GameObjects themselves don't have bounds. They have a single Vector3 transform and that's it.

You have to add a Physics object (ex. Physics2D Box Collider) which has bounds. Then it's as simple as calling whatever the .GetBounds methods are to match the Renderer's Bounds with the Collider's Bounds.

You'd want to look in the documentation for that stuff. Any mention of "Bounds" in the script reference is a good start.

http://docs.unity3d.com/ScriptReference/Renderer.html

Comment
Add comment · 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

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

23 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

Related Questions

Efficient way to instantiate a sprite that plays an animation then destroys itself? (3d space) 1 Answer

Using a 2d Sprite under a 3d Model. 1 Answer

Animation... Unity 3D...Blender...3rd Person 2 Answers

Ellen suddenly becoming visible after jumping (3d GameKit) 0 Answers

Unity 2d Animation from spritesheet: How can I move the character according to the animation? 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