大约有 1,254 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0062 秒)
Laya_社区(850) Laya2.0_文档(116) Laya3.0_api(79) Laya2.0_api(73) laya_api(68) Laya3.0_文档(54) Laya2.0_示例(8) Laya_示例(6)
... sp.loadImage("logo.png"); Laya.stage.addChild(sp); } private function onClick():void { //HTMLCanvas 是 Html Canvas 的代理类,封装了 Canvas 的属性和方法。。请不要直...
来源: Laya_社区 发布时间: 20170424
...e.getChildAt(0).getChildAt(0) as SkinnedMeshSprite3D; // animationNodeTemp.addChild(effect); body.addComponent(SkinAnimations); this.skinAnimation = body.getComponentByType(SkinAnimations) as SkinAnimations; this.skinAnimation._initialize(body); // var tempet:AnimationTemplet = new AnimationTemplet(...
来源: Laya_社区 发布时间: 20170819
...台 var sp:Laya.Sprite = new Laya.Sprite(); sp.loadImage(url); Laya.stage.addChild(sp);//添加到舞台 } private errorHandler(e:Object):void{ } } new GameMain(); ``` 第二种我们可以绘制一个纹理来显示: ```typescript private completeHandler(data:Object):void{ //加载完成返回的...
来源: Laya2.0_文档 发布时间: 20210714
为模型指定地形材质报错 var lineMesh = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("line/lineMesh.lm")));var terMaterial = new Laya.TerrainMaterial(); terMaterial.diffuseTexture1=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture2=new Laya.Texture2D.load("map2.png"); ...
来源: Laya_社区 发布时间: 20170615
...到舞台; var sp:Sprite = new Sprite(); sp.loadImage(url); Laya.stage.addChild(sp);//添加到舞台 } private function errorHandler(e:Object):void { } } } ``` 第二种我们可以绘制一个纹理来显示: ```java private function completeHandler(data:Object):void { //加载完成返回的d...
来源: Laya2.0_文档 发布时间: 20210714
...radiusX, radiusY, 0, radiusY * 2, color); Laya.stage.addChild(this.sprite); } // private createMap (): void//, undefined, new Point(1600, 800) // { // this.tiledMap = new TiledMap(); // // Laya.loader.create(["res/til...
来源: Laya_社区 发布时间: 20201230
... //创建胜利的UI界面 let victoryScene=new VictoryScene(); Laya.stage.addChild(victoryScene); this.isDelete=true; // console.log(Scene3DControl.GameSceneB); } }结束界面跳转到3D场景 import {VictorySceneUI} from '../ui/layaMaxUI' import GameScene from './GameScene'; export defaul...
来源: Laya_社区 发布时间: 20190903
... sk.pos(200,200) Laya.stage.addChild(sk); })) Laya.timer.once(2000,this,function(){ sk.destroy(true) ...
来源: Laya_社区 发布时间: 20180828
...载背景1 var bg1 = new Sprite(); bg1.loadImage("war/bc.png"); Laya.stage.addChild(bg1); //加载背景2 var bg2 = new Sprite(); bg2.loadImage("war/bc.png"); //更改背景2 放在背景1的上面 bg2.pos(0,852); Laya.stage.addChild(this); Laya.timer.frameLoop(1,this,myLoop); } function myLoo...
来源: Laya_社区 发布时间: 20191017
...is.CIRCLE_WIDTH) >> 1, (this.DEF_SIZE - 20) >> 1, "#fff") this.addChild(this.$circleSprite) this.start() } public start() { this.timerLoop(2, this, this.draw) } public draw() { if (this.startY >= 270) { this.clearTimer(this, this.draw) } this.startY++ this.graphics.clear() this.graphi...
来源: Laya_社区 发布时间: 20180123