Set Fill Amount Gimmick component
Set Fill Amount Gimmick is a gimmick that sets the FillAmount of an Image according to the value of the message it reads.
property
property | Function |
---|---|
Target | Specifies the target of the message to be read. See the gimmick’s common settings section for details. The target of this gimmick can be set to Global, Item, or LocalPlayer. To set a LocalPlayer, it must be a child of Player Local UI. |
Key | Specifies the distinguished name of the message to be read. See the Gimmick Common Settings section for details. |
Parameter Type | Specifies the type of message (value type) that can be read. |
-Float | Reads a real number message. |
-Integer | Reads integer-valued messages. |
MinValue | Specifies the value of the message when FillAmount is 0. |
MaxValue | Specifies the value of the message when FillAmount is set to 1. |
FillAmount is determined by the ratio of the value of the message read between MinValue and MaxValue. For example, if MinValue is 0 and MaxValue is 100, and you read a message with a value of 50, FillAmount will be set to 0.5.
With this gimmick, Image will be added automatically.
In order for this gimmick to work, the Image must be set to Source Image and the Image Type must be Filled.
When you add an image, a GameObject called Event System may be generated, which is not available in the Creator Kit, so please remove it. If it is not removed, you will not be able to upload the world.