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
.AlphaGet
Method - Static
public static byte
AlphaGet
()
Parameters
No parameters.
Returns
byte
Transparency
Description
Get the current alpha transparency value.
Example
void
Render()
{
// Store current alpha
var
prevAlpha =
RB
.
AlphaGet
();
RB
.
AlphaSet
(
127
);
RB
.
DrawSprite
(
"ghost"
,
new
Vector2i
(
0
,
0
));
// Restore previous alpha
RB
.
AlphaSet
(prevAlpha);
}
See Also
RB.AlphaSet
See Docs
Features - Alpha Transparency
© 2021 Martin Cietwierkowski