-
Notifications
You must be signed in to change notification settings - Fork 0
TransparentImageSprite
ColinTree edited this page Oct 11, 2018
·
3 revisions
All properties, methods, events are same with built-in component ImageSprite, except for the following ones:
- AA_PlaceHolder
- type: component type
Ball
- type: component type
- IgnoreColor
- type: color
- IgnoreTolerance
- type: non-negative integer
- Place holder needs to be set

- Set up properties in the place holder component's list
- Set a ignore color & tolerance to TransparentImageSprite
- Use it as normal!
Difference values of the colors are calculated with the followiong method:
- if alpha values are both 0, difference value will always be 0
- else Difference value = Max(red-diff, green-diff, blue-diff)
(.gif file: 220k)
