Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: HISPID on November 20, 2017, 02:56:52 AM

Title: One-sided UISprite functionality
Post by: HISPID on November 20, 2017, 02:56:52 AM
In my project i had a Find And Match (cards game) built with NGUI v 3.9.8 where i used custom shader with Cull Off option and cards were single-sided. After i updated to latest version 3.11.4(u5) all standard NGUI shaders now are Cull Off but the functionality of single-sided sprites are gone.

Sprites hierarchy:

CardContainer(Empty GameObject)
|_CardBackSide (UISprite)
|_CardFrontSide (UISprite rotated to  x:0, y:180, z:0)

The Topic: Latest Version: 3.10.2 (September 21st, 2016) says:
    - FIX: NGUI's geometry should now work with one-sided shaders.

I tried custom shaders with options Cull Back, Cull Front but without any results.

If anyone faced this problem already, please help to figure it out. Thank you! 
Title: Re: One-sided UISprite functionality
Post by: ArenMook on November 23, 2017, 01:30:39 AM
Open up NGUI's shaders such as Unlit - Transparent Colored. Find the line "Cull Off" and change it to whatever you need it to be.