Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 MortalVegetable · Apr 06, 2019 at 05:30 AM · 2d gamerenderinggraphicstransparency2d sprites

My Transparency Sort mode only won't work in game view!

I'm making a 2.5D game in unity, and I've done everything from sorting layers to manually changing the z axis, but nothing has worked. I've set the transparency mode to custom, and the sort axes to X: 0, Y: 1, Z: 1, as well as just Y: 1. I have the pivot points of all of the enemy and player sprites set to the bottom center, as well as having turned the sprite sort points all to pivot in the spriterenderer. I don't understand why the player shows up in front of the enemy at all times in the game view, while the rendering order works correctly only in the scene view.

unityproblem.jpg (117.6 kB)
unityproblem2.jpg (113.6 kB)
Comment
Add comment · Show 1
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 kdeger · Jan 30, 2020 at 07:33 AM 0
Share

@$$anonymous$$ortalVegetable are you using any asset like Ferr2D? Some assets overrides TransparencySort$$anonymous$$ode, in my case Ferr2D overrides to Ortographic, you may find that line and change it to CustomAxis.

4 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by blu3drag0n · May 05 at 09:38 PM

I found out that the issue is with the Tilemaps rendering mode "chunk". You need to set it to "individual" then it will work :-) But be aware that "individual" render mode for tilemaps can harm your performance, so it depends. If the performance won't do well for you you need to use multiple layers and use sort order. KR

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
avatar image
0

Answer by kdeger · Jan 08, 2020 at 09:06 AM

@MortalVegetable Had the same problem, I hope you found a solution already. I fixed this issue with a non-convenient way. The graphic transparency axis settings doesn't apply on my camera, the scene view looks fine (sorting via Y axis) but the game still looks the same. So I hardcoded the properties on Start() function;

     GetComponent<Camera>().transparencySortMode = TransparencySortMode.CustomAxis;
     GetComponent<Camera>().transparencySortAxis = new Vector3(0, 1, 0);

This works fine for me but I had to call this script on every start of each scene.

Hope this will help on someone who will have the same problem.

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
avatar image
0

Answer by Kaldrin · Nov 25, 2020 at 07:07 PM

I'm having a similar issue, I've set it all up correctly but it doesn't work, even with your script, I don't know what to do :/

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
avatar image
0

Answer by vickyfyrehart · Dec 14, 2020 at 07:17 PM

Any solutions to this issue? Nothing works, I've tried hardcoding the camera. Reinstalled. It worked 2 months ago, only when going through the Ruby 2D Adventure project. It still works on my project save for that tutorial, but never when I try to implement my knowledge to my own project. Everything else works, my character gets sorted correctly on the y-axis when behind the GameObject but not sorted correctly when in front of it on the y-axis. This issue makes me question whether I even want to try to make my game in Unity at all. ,Any solutions to this issue? Nothing works, I've tried hardcoding the camera. Reinstalled. It worked 2 months ago, only when going through the Ruby 2D Adventure project. It still works on my project save for that tutorial, but never when I try to implement my knowledge to my own project. Everything else works, my character gets sorted correctly on the y-axis when behind the GameObject but not sorted correctly when in front of it on the y-axis. This issue makes me question whether I even want to try make my game in Unity at all.

Comment
Add comment · Show 1 · 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 Kaldrin · Dec 14, 2020 at 10:11 PM 0
Share

Hi, I managed to make it work this way, by hardcoding the graphic settings, after days of looking for a solution, maybe this can help

https://answers.unity.com/questions/1792262/2d-custom-sort-axis-not-working-at-all.html

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

218 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Transparency without additive blending 1 Answer

Poor quality sprite 2D game 0 Answers

Objects changing color / rendering when entering area 2 Answers

Transperent Side of a Texture becomes black in Shader PBR Graph 1 Answer

Screen Not rendering 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