ScoreFlash Push Method (Object, )ScoreFlash API Documentation V4.6.0
Shows msg using style regardless of normal density or high density screen. It's up to you to make sure that style works correctly. It is recommended that it has alignment set to UpperCenter and wordWrap set to false (word wrap is automatically activated if the message is too long to be properly displayed on screen with minPaddingX.

Namespace: (Default Namespace)
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax

public static ScoreMessage Push(
	Object message,
	GUIStyle style
)

Parameters

message
Type: OnlineSystem Object
The message to be animated by ScoreFlash. This can be a string, a fully configured custom renderer, an int, long, float, double or any object with a useful ToString() method
style
Type: GUIStyle
a custom style, or null to use the custom style ScoreFlash of skin (this parameter is optional!) If you have a specific color assigned to that style that you want to be used, you need to have "Colors / Color Selection Mode" set to UseColorFromSkin (see colorSelectionMode, ScoreFlash ColorControl).

Return Value

the ScoreMessage representing the message
Remarks

Internally, this uses Instance, so it only works when ensureSingleton is true and/or there is only one instance of ScoreFlash in the current scene.
See Also