大约有 20 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0021 秒)
...我们2个猴子的位置。 ```typescript //克隆sprite3d var layaMonkey_clone1 = Laya.Sprite3D.instantiate(staticLayaMonkey, _scene, false, new Laya.Vector3(0.0, 0, 0.5)); var layaMonkey_clone2 = Laya.Sprite3D.instantiate(staticLayaMonkey, _scene, false, new Laya.Vector3(0.0, 0, 0.5)); var layaMo...
来源: Laya2.0_文档 发布时间: 20210715
...我们2个猴子的位置。 ```typescript //克隆sprite3d var layaMonkey_clone1:Sprite3D = Sprite3D.instantiate(staticLayaMonkey, _scene, false, new Vector3(0.0, 0, 0.5)); var layaMonkey_clone2:Sprite3D = Sprite3D.instantiate(staticLayaMonkey, _scene, false, new Vector3(0.0, 0, 0.5)); var layaMonk...
来源: Laya2.0_文档 发布时间: 20210714
...我们2个猴子的位置。 ```typescript //克隆sprite3d var layaMonkey_clone1:Laya.Sprite3D = Laya.Sprite3D.instantiate(staticLayaMonkey, _scene, false, new Laya.Vector3(0.0, 0, 0.5)); var layaMonkey_clone2:Laya.Sprite3D = Laya.Sprite3D.instantiate(staticLayaMonkey, _scene, false, new Laya.Vecto...
来源: Laya2.0_文档 发布时间: 20210715
...蒙版) this.camera.addLayer(5); //设置蒙版(所属图层) layaMonkey_clone1.layer = 2; layaMonkey_clone2.layer = 3; layaMonkey_clone3.layer = 4; ...... //切换图层按钮事件监听 this.changeActionButton.on(Laya.Event.CLICK, this, function():void { this.camera.removeAllLayers(); this.layerI...
来源: Laya2.0_文档 发布时间: 20210715
...蒙版) this.camera.addLayer(5); //设置蒙版(所属图层) layaMonkey_clone1.layer = 2; layaMonkey_clone2.layer = 3; layaMonkey_clone3.layer = 4; ...... //切换图层按钮事件监听 this.changeActionButton.on(Laya.Event.CLICK, this, function():void { this.camera.removeAllLayers(); this.layerI...
来源: Laya2.0_文档 发布时间: 20210715
...一个蒙版) camera.addLayer(5); //设置蒙版(所属图层) layaMonkey_clone1.layer = 2; layaMonkey_clone2.layer = 3; layaMonkey_clone3.layer = 4; ...... //切换图层按钮事件监听 changeActionButton.on(Event.CLICK, this, function():void { camera.removeAllLayers(); layerIndex ++; camera.add...
来源: Laya2.0_文档 发布时间: 20210715
...加脚本 this.staticLayaMonkey.addComponent(MouseScript); this.layaMonkey_clone1.addComponent(MouseScript); this.layaMonkey_clone2.addComponent(MouseScript); this.layaMonkey_clone3.addComponent(MouseScript); ``` 鼠标脚本的效果如图1所示: (图1)
来源: Laya2.0_文档 发布时间: 20210715
...加脚本 this.staticLayaMonkey.addComponent(MouseScript); this.layaMonkey_clone1.addComponent(MouseScript); this.layaMonkey_clone2.addComponent(MouseScript); this.layaMonkey_clone3.addComponent(MouseScript); ``` 鼠标脚本的效果如图1所示: (图1)
来源: Laya2.0_文档 发布时间: 20210715
...pt ...... //设置图层 staticLayaMonkey.layer = 1;//本体猴 layaMonkey_clone1.layer = 2; layaMonkey_clone2.layer = 3; layaMonkey_clone3.layer = 4; ...... //移除所有图层 this.camera.removeAllLayers(); //添加显示图层(为相机添加一个蒙版) this.camera.addLayer(5); //显示用计...
来源: Laya2.0_文档 发布时间: 20210715
...pt ...... //设置图层 staticLayaMonkey.layer = 1;//本体猴 layaMonkey_clone1.layer = 2; layaMonkey_clone2.layer = 3; layaMonkey_clone3.layer = 4; ...... //移除所有图层 camera.removeAllLayers(); //添加显示图层(为相机添加一个蒙版) camera.addLayer(5); //显示用计数 layerIn...
来源: Laya2.0_文档 发布时间: 20210715