C# 클래스 Tangzx.ABSystem.AssetBundleInfo

파일 보기 프로젝트 열기: tangzx/ABSystem 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
bundleName string
data AssetBundleData
minLifeTime float
onUnloaded OnUnloadedHandler

Private Properties

프로퍼티 타입 설명
UpdateReference int

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
UpdateReference ( ) : int

메소드 상세

AddDependency() 공개 메소드

public AddDependency ( AssetBundleInfo target ) : void
target AssetBundleInfo
리턴 void

AssetBundleInfo() 공개 메소드

public AssetBundleInfo ( ) : System
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Instantiate() 공개 메소드

实例化对象
public Instantiate ( ) : GameObject
리턴 UnityEngine.GameObject

Instantiate() 공개 메소드

public Instantiate ( Vector3 position, Quaternion rotation, bool enable = true ) : GameObject
position Vector3
rotation UnityEngine.Quaternion
enable bool
리턴 UnityEngine.GameObject

Instantiate() 공개 메소드

public Instantiate ( bool enable ) : GameObject
enable bool
리턴 UnityEngine.GameObject

Release() 공개 메소드

引用计数减一
public Release ( ) : void
리턴 void

Release() 공개 메소드

释放引用
public Release ( object owner ) : void
owner object
리턴 void

Require() 공개 메소드

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

Require() 공개 메소드

获取此对象
public Require ( Object user ) : Object
user UnityEngine.Object 增加引用的对象
리턴 UnityEngine.Object

ResetLifeTime() 공개 메소드

public ResetLifeTime ( ) : void
리턴 void

Retain() 공개 메소드

引用计数增一
public Retain ( ) : void
리턴 void

Retain() 공개 메소드

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

UnloadBundle() 공개 메소드

public UnloadBundle ( ) : void
리턴 void

프로퍼티 상세

bundleName 공개적으로 프로퍼티

public string bundleName
리턴 string

data 공개적으로 프로퍼티

public AssetBundleData,Tangzx.ABSystem data
리턴 AssetBundleData

minLifeTime 공개적으로 프로퍼티

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

onUnloaded 공개적으로 프로퍼티

public OnUnloadedHandler onUnloaded
리턴 OnUnloadedHandler