Modify Text on Event LPK_ModifyTextOnEvent.cs

This component will change a specified object's SpriteText Visible, Font, FontSize, VertexColor and Text properties to change upon receiving a specified event.

Suggested use:

Use to modify any text object's text properties on any specified received event.

Examples found in: Project 1, Project 2

Components
Property Type Description Default Value
Component Properties
Target Modify Objects Array of Objects Tagged object(s) whose text properties will be modified. Set to owner by default if this is left empty. 0
Modifications
Visible Properties
Visible Mode LPK Modify Mode How to modify visibility upon receiving the event. NONE
Visible Mode - SET
Visible Boolean New value to set visible flag to be. False
Visible Mode - COPY
Visible Copy Target Object Object whose visible flag will be copied to the recipient's property value. Only used if mode is set to copy. Default to self if this and the tag field are left unset. None
Visible Copy Tag Tag Object whose property value will be copied to the recipient's property value. Only used if mode is set to copy. Note this will only affect the first object with the tag found. None
Font Properties
Font Mode LPK Modify Mode How to modify the font upon receiving the event. NONE
Font Mode - SET
Font Font New font to use on the text. None
Font Mode - COPY
Font Copy Target Object Object whose font will be copied to the recipient's property value. Only used if mode is set to copy. Default to self if this and the tag field are left unset. None
Font Copy Tag Tag Object whose property value will be copied to the recipient's property value. Only used if mode is set to copy. Note this will only affect the first object with the tag found. None
Font Size Properties
Font Mode LPK Modify Mode How to modify the font size upon receiving the event. NONE
Font Mode - SET
Font Size Integer New font size for the text. 0
Font Size - COPY
Font Size Copy Target Object Object whose font size will be copied to the recipient's property value. Only used if mode is set to copy. Default to self if this and the tag field are left unset. None
Font Size Copy Tag Tag Object whose property value will be copied to the recipient's property value. Only used if mode is set to copy. Note this will only affect the first object with the tag found. None
Color Properties
Color Mode LPK Modify Mode How to modify color upon receiving the event. NONE
Color Mode - SET
Color Value Color Value New value to set color to be. Black - RGB(0,0,0)
Color Mode - COPY
Color Copy Target Object Object whose color will be copied to the recipient's property value. Only used if mode is set to copy. Default to self if this and the tag field are left unset. None
Color Copy Tag Tag Object whose color value will be copied to the recipient's color value. Only used if mode is set to copy. Note this will only affect the first object with the tag found. None
Text Properties
Text Mode LPK Modify Mode How to modify text upon receiving the event. NONE
Text Mode - SET
Text String New text to display.
Text Mode - COPY
Text Copy Target Object Object whose text will be copied to the recipient's property value. Only used if mode is set to copy. Default to self if this and the tag field are left unset. None
Text Copy Tag Tag Object whose property value will be copied to the recipient's property value. Only used if mode is set to copy. Note this will only affect the first object with the tag found. None