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 /
  • Help Room /
avatar image
0
Question by Mega_Jimmy · May 18, 2016 at 09:01 PM · 3d2.5d

Sprite Layers query - grouped layers?

Hello!

So this is more of a query then anything else. I've been using Unity to create characters made of multiple different Sprites and they are stacked on different rendering layers in Unity. However I need to know if there's a way to "group" them so the entire character renders as one object. For example if two characters were to pass each other in front of the camera, the camera would only render the pieces on the front layers. This might be easier to explain via example; alt text

So here I have two versions of the Player Character. In the scene the player on the right is in closer to the camera then the player on the left. However because they share render layers they do this;

alt text

So what I'm essentially asking is if there's a way to group sprites on these layers into a single layer, so that the characters may pass each other without coming out like some freakish monstrosity. The aim is so that my characters are 2D and can run around in 3D, as I'm trying to create a very "sketchbook" style of game. Any help whatsoever is appreciated!!

twolinemen.png (107.2 kB)
passingthrough.png (72.5 kB)
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 FortisVenaliter · May 18, 2016 at 09:07 PM

Yes, you need to group them into a base object. The UGUI renders in the order of the objects in the hierarchy, so if they are grouped into a single parent object, those objects would be evaluated and rendered separately.

Although from your post, it kind of sounds like you are doing this already...? Can you post a screenshot of your hierarchy view?

Comment
Add comment · Show 4 · 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 Mega_Jimmy · May 18, 2016 at 09:13 PM 0
Share

Thanks for your response, see below

alt text

The Player character is an Empty Parent that houses all the sprites together, the idea being then I can move the whole thing at once rather then potentially clicking dozens of sprites.

hierarchy.png (346.2 kB)
avatar image FortisVenaliter Mega_Jimmy · May 18, 2016 at 09:15 PM 0
Share

Okay, so you're not using a canvas.... that's an important piece of information... What component are you using to render the images? Is there a reason you aren't using the built-in 2D canvas functionality?

avatar image Mega_Jimmy FortisVenaliter · May 18, 2016 at 09:18 PM 0
Share

I'm not sure what you mean by 2D canvas. I'm looking in the Unity manual and it seems that's for UI stuff, like menus?

Show more comments

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

57 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

Related Questions

Combine 3D and 2D engines 0 Answers

How to make a pseudo 3d object change sprites (animations) based on where the player is facing it 0 Answers

2.5D Game: How to move main Character in X & Y Axis with ability to rotate? 1 Answer

Cover overlay sprites with geometry 0 Answers

Screen to World Point on 2.5D game 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