PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

SetImage

SetPosition will set the text shown on a touch button created by ContextActionService/BindAction|BindAction. Specifically, this sets the ImageLabel/Image property of the ImageLabel within the ImageButton that would be returned by ContextActionService/GetButton|GetButton. If no such bound action exists (e.g. nothing is returned by GetButton), this function does nothing and throws no error.

This function is part of a family of methods that customize the touch button of an action. Others in this family include ContextActionService/SetPosition|SetPosition and ContextActionService/SetTitle|SetTitle.

Parameters

Name Type Default Description

The name of the action originally passed to BindAction

The value to which the Image property should be set

Returns

Return Type Summary