Method FindAuraByPath
FindAuraByPath(string)
Finds an aura by its path, which can be specified as either an absolute path (e.g., "MyFolder/Aura1") or a relative path (e.g., "./Aura1" to find Aura1 in the same directory as the script using this API).
Declaration
IAura FindAuraByPath(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path of the aura, either absolute or relative. |
Returns
Type | Description |
---|---|
IAura | The aura at the specified path, or null if not found. It is important to note that this method could return null if the aura is not located. |
Examples
Using an absolute path:
var aura = api.FindAuraByPath("MyFolder/Aura1");
Using a relative path:
var aura = api.FindAuraByPath("./Aura1");