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
FastString
.TrimStart
Method
public
FastString
TrimStart
()
Parameters
No parameters.
Returns
FastString
The same instance of
FastString
Description
Trim all leading spaces from the string.
Example
// Allocate a FastString that can hold up to 256 characters
FastString
fstr =
new
FastString
(
256
);
void
Update() {
// Prints "RetroBlit "
fstr.Set(
" RetroBlit "
);
fstr.TrimStart();
RB
.
Print
(
new
Vector2i
(
0
,
0
), Color.white, fstr);
}
See Also
FastString.Trim
FastString.TrimEnd
© 2021 Martin Cietwierkowski