The ScoreFlashRendererBase type exposes the following members.
Back to Top
Methods
Name | Description | |
---|---|---|
AlphaMultiplyColor |
Multiplies the alpha value of b with the alpha value
of a and returns a, which basically means that
you get a with an alpha value that can be animated with
b. This is used to adjust the alpha value of background
images that are used together with ScoreFlash prefabs.
| |
Cleanup |
Is called when a renderer is put into the renderer pool so that it
can do any necessary cleanup work. This is used e.g. for NoesisGUI
which has its own labels.
| |
CreateInstance |
Creates a new instance of this renderer that will handle rendering
for a given message. Used internally by ScoreFlash. Default
implementation simply uses
Instantiate().
| |
DestroyInstance |
Needs to properly destroy the instance of this renderer. This is
called when the message has been animated through the complete animation.
Default implementation simply calls
Destroy().
| |
GetSize |
The size of the message on screen. Depending on the underlying GUI system
you are using, there may be different ways of calculating the
size. This needs to be in screen coordinates.
| |
Initialize |
Can be used to initialize the message renderer.
| |
UpdateMessage |
Update the message. The implementation needs
to make sure that you update position, scale, rotation color and outline
color as well as the text ... and whether the message is currently visible!
|
See Also