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

GetPath

The GetPath function returns the path of an asset (or image) for the Id and Modifier. We can have different icons to be loaded depending on the theme.

The StyleGuideModifer argument’s default value is Enum\StyleGuideModifier, which applies no modifier.

This is intended for use within Plugin|Plugins, but will also execute in the Command Line.

For instance, if you would like to get the path of the “MoreButton” image, you would use the following code:

settings().Studio.Theme:GetPath("MoreButton")

Parameters

Name Type Default Description

The asset id you want the path for

Default

The modifier you want to apply to the specified asset

Returns

Return Type Summary

The path of the id with the modifier