• 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 Van Zeng · Apr 16, 2013 at 03:29 AM · shadershadersprime31uitoolkit

About the shader of UIToolkit

alt text

alt text

FIG 1: UIToolkit Shader, No alpha FIG 2: UIToolkit Shader, alpha enabled (default)

These are the screenshots in my iPhone4. The UI are actually PNG file processed with TexturePacker free version. As you can see both are not rendered right in iPhone. Description: This is a popup dialog. I rendered a 50% transparent black mask covered up all the screen (for this black mask, both Fig1 and Fig2 are UIToolkit alpha-enabled shader), and then the yellow dialog background, and the font finally. As now you can see, the point is how to render the edge of the yellow dialog background, a non-regular shape.

QUESTION 1: Why they're not rendered right, especially FIG2, after I enable alpha?

QUESTION 2: Everything is right in UNITY_EDITOR, no mater which shader I choose. Why I get different results between EDITOR and IPHONE, since these are some normal 3D objects rendering in Unity3D.

QUESTION 3: How do I get it right in iPHONE?

img_5123.jpg (47.3 kB)
img_5124.jpg (65.4 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

0 Replies

· Add your reply
  • Sort: 

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

11 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

Related Questions

Shader compilation fails for Wii-U 2 Answers

Make an object partyally invisible 0 Answers

Why does AngryBots `QualityManager` alter shader LOD twice? 0 Answers

How can I change between color and texture for albedo in Shader Graph? 2 Answers

How do you use a shader file once written? 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges