大约有 1,162 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0158 秒)
Laya_社区(657) Laya_示例(157) Laya2.0_文档(129) Laya2.0_示例(116) Laya3.0_api(72) Laya3.0_文档(11) laya_api(11) Laya2.0_api(9)
...nin.autoSize=true; anin.autoPlay=false; anin.interval=interval; private function onloaded():void { anin.pivotX=anin.getBounds().width/2; anin.pivotY=anin.getBounds().height/2; } 如上:动画加载成功后设置的描点,在电脑上运行正常,打包APK后到手机上运行,描点...
来源: Laya_社区 发布时间: 20180806
...3-28 10:33 var roleTemp = new Templet(); roleTemp.on(Event.COMPLETE, this, function(){ var roleAni = roleTemp.buildArmature(1); Laya.stage.addChild(roleAni); }) roleTemp.loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/spine/...
来源: Laya_社区 发布时间: 20171116
...-default001.lm",Laya.Handler.create(this,this.onCreateComplete)); function onCreateComplete() { var mesh = Laya.loader.getRes("cj\cj-default001.lm"); var meshSprite3D = new Laya.MeshSprite3D(mesh); this.scene.addChild(meshSprite3D); } //modelshow = new Laya.MeshSprite3D(Laya.Mesh...
来源: Laya_社区 发布时间: 20180427
... private var sp:Sprite; public function Sprite_DrawShapes() { Laya.init(500, 300, WebGL); drawSomething(); } private function drawSomething():void ...
来源: Laya2.0_文档 发布时间: 20210714
...heckBox; import laya.utils.Handler; public class CheckBox_Example { public function CheckBox_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/check.png", Handler.create(this,onLoadComplete));//...
来源: Laya3.0_api 发布时间: 20231115
... btCollisionObject undefined 导微信小程序报错window.focus is not a function 微信小游戏编译报错 启动引擎报错 mPlugin.game_plugin_init(3); FD 宏编译时 出现 试图访问该方法时失败 问题状态 最新活动: 2017-02-08 14:58 浏览: 1846 关注: 2 人 daohu • 2017-...
来源: Laya_社区 发布时间: 20170207
...r.IMAGE }); Laya.loader.load(asset,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var s = new laya.display.Sprite(); s.graphics.drawTexture(Laya.loader.getRes("../res/image/bg.png"),0,0); Laya.stage.addChild(s); } 新建一个工程 這样写打包之后会白屏 2018-08-08 0 8 ...
来源: Laya_社区 发布时间: 20180808
...fo(这是protobu的de) /** * 客户端往服务端发送数据 **/ private function onSendBytesToServer(bytes:ByteArray):void { /*[IF-FLASH]*/ bytes.position = 0; /*[IF-FLASH]*/ g_Socket.send(bytes); //[IF-SCRIPT] (g_Socket._output as ByteArray).writeBytes(bytes); //[IF-SCRIPT] g_Socket.flush(); }...
来源: Laya_社区 发布时间: 20170405
...fileRect()方法,具体行见截图 RenderContext类:this._drawRect=function(x,y,args){ var ctx=this.ctx; if (args[4] !=null){ ctx.fillStyle=args[4]; ctx.fillRect(x+ar...
来源: Laya_社区 发布时间: 20161210
...d"); sp.y = i*60; sp.index=i; sp.size(50,50); sp.on(Laya.Event.CLICK,this, function (e) { alert(e.target.index); },[{target:sp}]) Laya.stage.addChild(sp); } 2017-02-21 1 0 分享 微博 QZONE 微信 ayiui4566 赞同来自: e.target有index属性?会检测期间报错的吧。 2017-12-11 0 0 分...
来源: Laya_社区 发布时间: 20170221