Serializable url for native asset. For internal usage.
Indicates the native assets of this prefab can be load after prefab loaded.
The main Node in the prefab
Whether the asset is loaded or not
Indicates the optimization policy for instantiating this prefab. Set to a suitable value based on usage, can optimize the time it takes to instantiate this prefab. Suggest to set this policy in the editor's asset inspector.
Enumeration for optimization policy
for internal use
Indicates whether its dependent native assets can support deferred load if the owner scene (or prefab) is marked as asyncLoadAssets
.
Indicates whether its native object should be preloaded from native url.
The underlying native asset of this asset if one is available.
This property can be used to access additional details or functionality releated to the asset.
This property will be initialized by the loader if _native
is available.
The underlying native asset of this asset if one is available.
This property can be used to access additional details or functionality releated to the asset.
This property will be initialized by the loader if _native
is available.
Returns the url of this asset's native object, if none it will returns an empty string.
The number of reference
Set native file name for this asset.
Add references of asset
itself
Dynamically translation prefab data into minimized code.
This method will be called automatically before the first time the prefab being instantiated,
but you can re-call to refresh the create function once you modified the original prefab data in script.
Reduce references of asset and it will be auto released when refCount equals 0.
itself
应 AssetDB 要求提供这个方法。 返回一个序列化后的对象
Returns the string representation of the object.
The Asset
object overrides the toString()
method of the Object
object.
JavaScript calls the toString() method automatically
when an asset is to be represented as a text value or when a texture is referred to in a string concatenation.
For assets of the native type, it will return this.nativeUrl
.
Otherwise, an empty string is returned.
This method may be overwritten by subclasses.
应 AssetDB 要求提供这个方法。
Generated using TypeDoc
Class for prefab handling.