Documentation
v3.4.0
Intro
Features
Unity
Crash Course
API
Reference
Version
History
Legal
AudioAsset
Ease
FastString
FontAsset
NineSlice
PackedSprite
PackedSpriteID
RB
HardwareSettings
IRetroBlitGame
RBAsset
Rect2i
ShaderAsset
SoundReference
SpriteGrid
SpriteSheetAsset
TMXMapAsset
TMXLayer
TMXLayerLoadState
TMXObject
TMXObjectGroup
TMXProperties
Vector2i
RB
.TintColorGet
Method - Static
public static Color32
TintColorGet
()
Parameters
No parameters.
Returns
Color32
Tint color
Description
Get the current tint color value.
Example
void
Render()
{
var
oldTint =
RB
.
TintColorGet
();
// Draw the the hero with a green tint if poisoned
if
(poisoned) {
RB
.
TintColorSet
(Color.green);
}
RB
.
DrawSprite
(
"hero"
,
new
Vector2i
(
0
,
0
));
RB
.
TintColorSet
(oldTint);
}
See Also
RB.TintColorSet
See Docs
Features - Color Tinting
© 2021 Martin Cietwierkowski