Skip to content
SiteEmail

cohtml.Editor.CohtmlSamplesImporter.Sample

Name
boolIsFrontEndOnly
stringPath
The path to the root folder of the sample. This can either be the imported path or the package path, depending on whether the sample includes only front-end files.
Name
stringname
stringlink
stringRawLink
stringImportUIResourcesPath
Get the UIResources folder path inside the sample folder.
stringStreamingAssetsUIResourcesPath
Get the location where the samples UI Resources can be pasted.
bool IsFrontEndOnly;
string Path;

The path to the root folder of the sample. This can either be the imported path or the package path, depending on whether the sample includes only front-end files.

string name;
string link;
string RawLink;
string ImportUIResourcesPath => Utils.CombinePaths(Path, EditorUtils.UIResourcesDir);

Get the UIResources folder path inside the sample folder.

string StreamingAssetsUIResourcesPath => Utils.CombinePaths(EditorUtils.AssetsDir, StreamingAssetsSampleDir, link);

Get the location where the samples UI Resources can be pasted.