프로퍼티 | 타입 | 설명 | |
---|---|---|---|
bundleName | string | ||
data | |||
minLifeTime | float | ||
onUnloaded | OnUnloadedHandler |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
UpdateReference | int |
메소드 | 설명 | |
---|---|---|
AddDependency ( |
||
AssetBundleInfo ( ) : System | ||
Dispose ( ) : void | ||
Instantiate ( ) : |
实例化对象
|
|
Instantiate ( Vector3 position, |
||
Instantiate ( bool enable ) : |
||
Release ( ) : void |
引用计数减一
|
|
Release ( object owner ) : void |
释放引用
|
|
Require ( |
获取对象
|
|
Require ( |
获取此对象
|
|
ResetLifeTime ( ) : void | ||
Retain ( ) : void |
引用计数增一
|
|
Retain ( |
增加引用
|
|
UnloadBundle ( ) : void |
메소드 | 설명 | |
---|---|---|
UpdateReference ( ) : int |
public AddDependency ( |
||
target | ||
리턴 | void |
public Instantiate ( Vector3 position, |
||
position | Vector3 | |
rotation | ||
enable | bool | |
리턴 |
public Instantiate ( bool enable ) : |
||
enable | bool | |
리턴 |
public Require ( |
||
c | 增加引用的Component | |
autoBindGameObject | bool | 如果为true,则增加引用到它的gameObject对象上 |
리턴 |
public Require ( |
||
user | 增加引用的对象 | |
리턴 |
public Retain ( |
||
owner | 用来计算引用计数,如果所有的引用对象被销毁了,那么AB也将会被销毁 | |
리턴 | void |