Author Topic: One-sided UISprite functionality  (Read 1934 times)

HISPID

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 2
    • View Profile
One-sided UISprite functionality
« 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! 

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: One-sided UISprite functionality
« Reply #1 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.