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

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

1551. 图集动画没有显示 [ 70%]

...imation), null, Laya.loader.ATLAS); function createAnimation() { var ani = new Laya.Animation(); ani.loadAtlas(AniConfPath); ani.interval = 30; ani.index = 1; ani.play(); Laya.stage.addChild(ani); } 2017-09-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

1552. parameter 2 is not of type 'WebGLTexture' [ 70%]

...wToCanvas(btn_edit.width, btn_edit.height, 0, 0); var interceptT:Texture = new Texture(htmlC); var img:Sprite = new Sprite; img.graphics.drawImage(interceptT, 0, 0, btn_edit.width, btn_edit.height); Laya.stage.addChild(img);     如图和代码(一个按钮点击后draw图然后加入stage) 只...

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

1553. laya3d变换,m.transform.worldMatrix.setForward中,setForward的用法? [ 70%]

...这样写,形状都变了呢? meshbox.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 1));       附件 : --> 2019-09-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 aplsong 赞同来自: directi...

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

1554. LayaAir下TTF字体的使用方式? [ 70%]

...ass TTFTest { public function TTFTest() { Laya.init(550,400); var sp:Image=new Image(); sp.loadImage("2.png"); Laya.stage.addChild(sp); var text:Text=new Text(); text.fontSize=40; text.color="#FF00FF"; text.text="哈哈哈哈哈哈哈哈哈哈哈哈哈哈"; text.font="hu" text.pos(600,600); Laya.sta...

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

1555. 动画挂点(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 70%]

...function(res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box...

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

1556. 动画挂点(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 70%]

...function(res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box...

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

1557. Laya.Handler.create 加载图片回调参数问题 [ 70%]

... Laya.init(Laya.Browser.width, Laya.Browser.height, Laya.WebGL); var sp = new Laya.Sprite(); Laya.stage.addChild(sp); sp.loadImage("res/img/popular.png", 0, 0, 0, 0, Laya.Handler.create(this, function (a1, a2) { console.log(a1, a2); }), [100]);   为什么不能把Laya.Hander.create后面带的这...

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

1558. 2.13版本 2D物理碰撞OnTriggerEnter 第三个参数 contact.getHitInfo() 报错 [ 70%]

...理碰撞 OnTriggerEnter 第三个参数 contact.getHitInfo() 报错   new this.box2d   box2d 是undefined 请问这里的 this 指向是 ??   contact.getHitInfo = function () {                 var manifold = new this.box2d.b2WorldManifold();                 this.GetWorldManifold...

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

1559. 怎样把一个精灵从父节点完全删除 就是读取不到这个精灵的意思 [ 70%]

...回复问题请先登录 发起人 oy2419498011 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有使用命名空间类文件的定义!导致运行时 找不到类的定...

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

1560. 二次开发 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

... void testAsyncCallback(String json) { //js thread try { JSONObject root = new JSONObject(json); Log.d("JSBridge", "java: " + root.getString( "value" )); } catch (JSONException e) { e.printStackTrace(); } m_Handler.post( new Runnable() { public void run() { //ui thread update ui JSONObject obj = new...

来源: Laya3.0_文档 发布时间: 20250422