Tanoda
Leap.Unity.AssetFolder Class Reference

A convenient serializable representation of an asset folder. Only useful for editor scripts since asset folder structure is not preserved for builds. The asset folder struct itself is still available at runtime for serialization ease, but the Path property will not be available. More...

Inheritance diagram for Leap.Unity.AssetFolder:
Leap.Unity.StreamingFolder Leap.Unity.StreamingAsset

Public Member Functions

 AssetFolder ()
 
 AssetFolder (string path)
 

Protected Attributes

UnityObject _assetFolder
 

Properties

virtual string Path [get, set]
 Gets or sets the folder path. This path will always be a path relative to the asset folder, and matches the format expected and returned by AssetDatabase. This operation cannot be performed from inside of a build due to Assets no longer existing. More...
 

Detailed Description

A convenient serializable representation of an asset folder. Only useful for editor scripts since asset folder structure is not preserved for builds. The asset folder struct itself is still available at runtime for serialization ease, but the Path property will not be available.

Definition at line 26 of file AssetFolder.cs.

Constructor & Destructor Documentation

◆ AssetFolder() [1/2]

Leap.Unity.AssetFolder.AssetFolder ( )

Definition at line 31 of file AssetFolder.cs.

◆ AssetFolder() [2/2]

Leap.Unity.AssetFolder.AssetFolder ( string  path)

Definition at line 33 of file AssetFolder.cs.

Member Data Documentation

◆ _assetFolder

UnityObject Leap.Unity.AssetFolder._assetFolder
protected

Definition at line 29 of file AssetFolder.cs.

Property Documentation

◆ Path

virtual string Leap.Unity.AssetFolder.Path
getset

Gets or sets the folder path. This path will always be a path relative to the asset folder, and matches the format expected and returned by AssetDatabase. This operation cannot be performed from inside of a build due to Assets no longer existing.

Definition at line 43 of file AssetFolder.cs.


The documentation for this class was generated from the following file: