|
|
|
|
|
|
Texture _texture; |
|
|
|
readonly bool _noDispose; |
|
|
|
readonly bool _isAsset; |
|
|
|
readonly bool _isDynamic; |
|
|
|
public Image(Texture texture, bool noDispose = false, bool isAsset = false, AssetBundle bundle = null) { |
|
|
|
public Image(Texture texture, bool noDispose = false, bool isAsset = false, AssetBundle bundle = null, bool isDynamic = false) { |
|
|
|
D.assert(!noDispose || !isAsset && bundle == null); |
|
|
|
D.assert(isAsset || bundle == null); |
|
|
|
|
|
|
|
|
|
|
this._bundle = bundle; |
|
|
|
this._isDynamic = isDynamic; |
|
|
|
} |
|
|
|
|
|
|
|
public int width { |
|
|
|
|
|
|
|
|
|
|
public Texture texture { |
|
|
|
get { return this._texture; } |
|
|
|
} |
|
|
|
|
|
|
|
public bool isDynamic { |
|
|
|
get { return this._isDynamic; } |
|
|
|
} |
|
|
|
|
|
|
|
~Image() { |
|
|
|