cohtml.EditorUtils
Public Functions
| Name | |
|---|---|
| string | StringifyPlatform(BuildTarget platform) |
| string | StringifyBackend(GraphicsDeviceType backend) |
| string | GetAppExtension(BuildTarget platform) |
| string | FindBrowserExecutablePath() |
| void | CopyFolder(string sourceFolder, string destinationFolder, params string [] fileExtensionsForExclude) |
| void | DeleteFolderRecursively(string directory, bool removeDirectoryMetaFile =true) |
Public Attributes
| Name | |
|---|---|
| const string | AssetsDir The project’s root directory. |
| const string | SamplesDir The default sample directory where the UPM Samples are imported. |
| const string | UPMSamplesDir The Cohtml package sample folder. |
| const string | StreamingAssetsDir The Streaming Assets directory. The folder is inside the Assets folder. |
| const string | CohtmlDir The Cohtml directory name. It’s part of sample’s resources, assets or package directories. |
| const string | UIResourcesDir The directory where the front-end lies. |
| const string | SampleHubDir The Sample Hub directory. |
| const string | HelloSampleDir The Hello template directory. |
| const string | FrontendSamplesDir The directory where the front end uiresources folder will import. |
| const string | SceneExtension The scene extension |
| readonly string | ExcludeMetaFiles Represent a collection with exclude to copy files. |
Public Functions Documentation
function StringifyPlatform
static string StringifyPlatform(
BuildTarget platform
)
function StringifyBackend
static string StringifyBackend(
GraphicsDeviceType backend
)
function GetAppExtension
static string GetAppExtension(
BuildTarget platform
)
function FindBrowserExecutablePath
static string FindBrowserExecutablePath()
function CopyFolder
static void CopyFolder(
string sourceFolder,
string destinationFolder,
params string [] fileExtensionsForExclude
)
function DeleteFolderRecursively
static void DeleteFolderRecursively(
string directory,
bool removeDirectoryMetaFile =true
)
Public Attributes Documentation
variable AssetsDir
const string AssetsDir = "Assets";
The project’s root directory.
variable SamplesDir
const string SamplesDir = "Samples";
The default sample directory where the UPM Samples are imported.
variable UPMSamplesDir
const string UPMSamplesDir = SamplesDir + "~";
The Cohtml package sample folder.
variable StreamingAssetsDir
const string StreamingAssetsDir = "StreamingAssets";
The Streaming Assets directory. The folder is inside the Assets folder.
variable CohtmlDir
const string CohtmlDir = "Cohtml";
The Cohtml directory name. It’s part of sample’s resources, assets or package directories.
variable UIResourcesDir
const string UIResourcesDir = "UIResources";
The directory where the front-end lies.
variable SampleHubDir
const string SampleHubDir = "SampleHub";
The Sample Hub directory.
variable HelloSampleDir
const string HelloSampleDir = "Hello";
The Hello template directory.
variable FrontendSamplesDir
const string FrontendSamplesDir = "FrontendSamples";
The directory where the front end uiresources folder will import.
variable SceneExtension
const string SceneExtension = ".unity";
The scene extension
variable ExcludeMetaFiles
static readonly string ExcludeMetaFiles = ".meta";
Represent a collection with exclude to copy files.