|
@@ -33,6 +33,13 @@
|
|
@serialize()
|
|
@serialize()
|
|
public isRenderTarget = false;
|
|
public isRenderTarget = false;
|
|
|
|
|
|
|
|
+ public get uid(): string {
|
|
|
|
+ if (!this._uid) {
|
|
|
|
+ this._uid = Tools.RandomId();
|
|
|
|
+ }
|
|
|
|
+ return this._uid;
|
|
|
|
+ }
|
|
|
|
+
|
|
public toString(): string {
|
|
public toString(): string {
|
|
return this.name;
|
|
return this.name;
|
|
}
|
|
}
|
|
@@ -59,10 +66,12 @@
|
|
|
|
|
|
private _scene: Scene;
|
|
private _scene: Scene;
|
|
public _texture: WebGLTexture;
|
|
public _texture: WebGLTexture;
|
|
|
|
+ private _uid: string;
|
|
|
|
|
|
constructor(scene: Scene) {
|
|
constructor(scene: Scene) {
|
|
this._scene = scene;
|
|
this._scene = scene;
|
|
this._scene.textures.push(this);
|
|
this._scene.textures.push(this);
|
|
|
|
+ this._uid = null;
|
|
}
|
|
}
|
|
|
|
|
|
public getScene(): Scene {
|
|
public getScene(): Scene {
|