ScoreFlashRendererBase MethodsScoreFlash API Documentation V4.6.0
The ScoreFlashRendererBase type exposes the following members.
Methods

  NameDescription
Public methodAlphaMultiplyColor
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.
Public methodCleanup
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.
Public methodCreateInstance
Creates a new instance of this renderer that will handle rendering for a given message. Used internally by ScoreFlash. Default implementation simply uses OnlineInstantiate().
Public methodDestroyInstance
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 OnlineDestroy().
Public methodGetSize
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.
Public methodInitialize
Can be used to initialize the message renderer.
Public methodUpdateMessage
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!
Back to Top
See Also