• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 828 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0074 秒)

611. 动画不显示 [ 56%]

...件。我把全部源码贴出来吧   package {     import laya.utils.Handler;     import laya.display.Text;     import laya.display.Animation;     import laya.webgl.WebGL;     import laya.media.Sound;     import laya.webgl.shapes.Ellipse;     import laya.display.Stage;    ...

来源: Laya_社区 发布时间: 20170921

612. LAYABOX游戏实时语音之APP版本 [ 56%]

...t android.content.Intent; import android.os.Environment; import android.os.Handler; import android.os.Looper; import android.os.Message; import android.util.Log; import org.json.JSONException; import org.json.JSONObject; import java.util.ArrayList; import demo.MainActivity; import layaair.game.brows...

来源: Laya_社区 发布时间: 20170722

613. 求教 JS项目的Promise如何使用 [ 56%]

...调方法绘制图片并添加到舞台 Laya.loader.load(this.monkey2,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var img = new Laya.Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(this.monkey2),100,50); //添加到舞台 Laya.stage.ad...

来源: Laya_社区 发布时间: 20170825

614. 向TiledMap中的对象层中的矩形框添加精灵,不显示 [ 56%]

...ayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this,onLoadedMap)); } private var sp:Sprite; private function onLoadedMap():void { var mapLayer:MapLayer=tiledMap.getLayerByIndex(2); sp=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); sp.z...

来源: Laya_社区 发布时间: 20170525

615. 加载龙骨动画出报错Uncaught getUint16 error - Out of bounds [ 56%]

... 赞同来自: 龙印 已经解决:: Laya.loader.load("ani/jingbubeipi.sk",Handler.create(this,asd),null,Loader.BUFFER);  在预加载动画时这样在后面参数加上loader.buffer; 2018-09-13 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...

来源: Laya_社区 发布时间: 20180913

616. sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale [ 56%]

...ion;Laya.Tween.to(box.potOld,{     x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animation...

来源: Laya_社区 发布时间: 20170630

617. ViewStack属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 56%]

...默认程序,编写代码如下: ```java package { import laya.utils.Handler; import laya.webgl.WebGL; //导入UI发布生成的类 import ui.ComponentDemoUI; public class ComponentDemo { /**包含tab与viewStack组件的测试页面**/ private var comp:ComponentDemoUI; public function Component...

来源: Laya2.0_文档 发布时间: 20210715

618. Panel使用文档(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 56%]

...00); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //实例化Panel组件 var panel: Laya.Panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设...

来源: Laya2.0_文档 发布时间: 20210715

619. Templet资源删除不掉 [ 56%]

...ype:Loader.BUFFER });             //   Laya.loader.load(assets, Handler.create(this, onAssetLoaded));             onAssetLoaded();         } 顺便问一下 你们的对于小图加载会自动加入大图集中去,一张满了就再加一张,这个大图集的重建是...

来源: Laya_社区 发布时间: 20160902

620. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 56%]

...l; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private on3DComplete():void{ //创建3D角色 //实例化角色 this.role = Laya.loader.getRes("res/LayaScene_girl/girl.lh"); this.scene.addChild(this....

来源: Laya_社区 发布时间: 20180307