ScoreFlashRendererBase MembersScoreFlash API Documentation V3.2.0

The ScoreFlashRendererBase type exposes the following members.
Methods

  NameDescription
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
Properties

  NameDescription
Public propertyRequiresCustomParent
If this returns true, a slot for a custom parent is added to the ScoreFlash inspector. This is can be used e.g. for NGUI where you should put the generated objects below anchors or panels.
Public propertyUsesGUISkin
If this returns true, slots for GUISkins are shown in the ScoreFlash inspector.
Back to Top
See Also