大约有 1,421 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0082 秒)
Laya_社区(873) Laya2.0_文档(129) Laya3.0_api(105) Laya_示例(75) Laya2.0_api(66) Laya3.0_文档(61) laya_api(61) Laya2.0_示例(51)
.../ Laya.stage.addChild(runGame); var sp = new laya.display.Sprite(); sp.x = 100; sp.y = 100; var texture = Laya.loader.getRes('player/chara_01.png'); sp.graphics.drawTexture(texture, 0, 0, 96, 96); Laya.stage.addChild(sp); console.log(texture); } 这里大家可能有疑问 为什么路径地址是...
来源: Laya_社区 发布时间: 20160801
....multiline=true; textInput.wordWrap=true; textInput.width=200; textInput.x=100; textInput.y=200; addChild(textInput); textInput.addEventListener(FocusEvent.FOCUS_IN,onFocusIn); textInput.addEventListener(FocusEvent.FOCUS_OUT,onFocusOut); private function onFocusIn(event:FocusEvent):void { textInput....
来源: Laya_社区 发布时间: 20151225
...or3(0.5, 0.5, 0.5); //初始化相机 var camera = new Laya.Camera(0, 0.1, 100); this.scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 3, 5)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var directionLight = new Laya.DirectionLight(); this.scene.addChild...
来源: Laya_社区 发布时间: 20191209
...Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也...
来源: Laya2.0_api 发布时间: 20190513
...ddChild(sp); //创建DrawToCanvas命令按钮 var btnDraw:Sprite=CreateBtn(100,400); btnDraw.on(Event.CLICK,this,onClickBtnDraw); } //创建按钮 private function CreateBtn(xx:int,yy:int):Sprite { var btn:Sprite=new Sprite(); btn.graphics.drawRect(0,0,200,50,"#FF0000"); btn.pos(100,400); var text:T...
来源: Laya_社区 发布时间: 20170822
...-30); // 右上 polygon.addPoint(30, 10); // 右上内侧 polygon.addPoint(100, 150); // 右下 polygon.addPoint(10, 30); // 下内侧 polygon.addPoint(-100, 150); // 左下 polygon.addPoint(-30, 10); // 左下内侧 polygon.addPoint(-150, -30); // 左上 polygon.addPoint(-20, -30); // 左上内侧 ...
来源: Laya3.0_文档 发布时间: 20251010
...件替代否? u3d的粒子系统为什么要导成lh的文件,如果有100个粒子我是不是要导出100百遍 问题状态 最新活动: 2017-11-29 17:40 浏览: 1133 关注: 2 人
来源: Laya_社区 发布时间: 20171129
...Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也...
来源: Laya2.0_api 发布时间: 20190513
....texture = new Laya.Texture(videoTexTure); this.addChild(image); image.pos(100,100); }); 2024-03-04 1 1 分享 微博 QZONE 微信 phhh 赞同来自: 2d播放视频要事件触发 2023-08-25 0 1 分享 微博 QZONE 微信 木易楊 赞同来自: 尝试过是否是微信限制需要点击在播放,...
来源: Laya_社区 发布时间: 20230825
...GLE_DIST) { targetX = endPosition; } Tween.to(this.button, { x: targetX }, 100); } } new Interaction_Swipe();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export cl...
来源: Laya2.0_示例 发布时间: 20260303