C# Class Tangzx.ABSystem.AssetBundleInfo

Afficher le fichier Open project: tangzx/ABSystem Class Usage Examples

Méthodes publiques

Свойство Type Description
bundleName string
data AssetBundleData
minLifeTime float
onUnloaded OnUnloadedHandler

Private Properties

Свойство Type Description
UpdateReference int

Méthodes publiques

Méthode Description
AddDependency ( AssetBundleInfo target ) : void
AssetBundleInfo ( ) : System
Dispose ( ) : void
Instantiate ( ) : GameObject

实例化对象

Instantiate ( Vector3 position, Quaternion rotation, bool enable = true ) : GameObject
Instantiate ( bool enable ) : GameObject
Release ( ) : void

引用计数减一

Release ( object owner ) : void

释放引用

Require ( Component c, bool autoBindGameObject ) : Object

获取对象

Require ( Object user ) : Object

获取此对象

ResetLifeTime ( ) : void
Retain ( ) : void

引用计数增一

Retain ( Object owner ) : void

增加引用

UnloadBundle ( ) : void

Private Methods

Méthode Description
UpdateReference ( ) : int

Method Details

AddDependency() public méthode

public AddDependency ( AssetBundleInfo target ) : void
target AssetBundleInfo
Résultat void

AssetBundleInfo() public méthode

public AssetBundleInfo ( ) : System
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Instantiate() public méthode

实例化对象
public Instantiate ( ) : GameObject
Résultat UnityEngine.GameObject

Instantiate() public méthode

public Instantiate ( Vector3 position, Quaternion rotation, bool enable = true ) : GameObject
position Vector3
rotation UnityEngine.Quaternion
enable bool
Résultat UnityEngine.GameObject

Instantiate() public méthode

public Instantiate ( bool enable ) : GameObject
enable bool
Résultat UnityEngine.GameObject

Release() public méthode

引用计数减一
public Release ( ) : void
Résultat void

Release() public méthode

释放引用
public Release ( object owner ) : void
owner object
Résultat void

Require() public méthode

获取对象
public Require ( Component c, bool autoBindGameObject ) : Object
c UnityEngine.Component 增加引用的Component
autoBindGameObject bool 如果为true,则增加引用到它的gameObject对象上
Résultat UnityEngine.Object

Require() public méthode

获取此对象
public Require ( Object user ) : Object
user UnityEngine.Object 增加引用的对象
Résultat UnityEngine.Object

ResetLifeTime() public méthode

public ResetLifeTime ( ) : void
Résultat void

Retain() public méthode

引用计数增一
public Retain ( ) : void
Résultat void

Retain() public méthode

增加引用
public Retain ( Object owner ) : void
owner UnityEngine.Object 用来计算引用计数,如果所有的引用对象被销毁了,那么AB也将会被销毁
Résultat void

UnloadBundle() public méthode

public UnloadBundle ( ) : void
Résultat void

Property Details

bundleName public_oe property

public string bundleName
Résultat string

data public_oe property

public AssetBundleData,Tangzx.ABSystem data
Résultat AssetBundleData

minLifeTime public_oe property

如果没有其它东西引用的情况下,此AB最小生存时间(单位秒) 否则有可能刚加载完成就被释放了
public float minLifeTime
Résultat float

onUnloaded public_oe property

public OnUnloadedHandler onUnloaded
Résultat OnUnloadedHandler