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

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

1071. 3D项目Label组件增加最少15M内存 [ 55%]

...t.color = "#ffffff"; //将文本内容添加到舞台 Laya.stage.addChild(txt); } } new LayaAir3D();

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

1072. destroyChildren 销毁对象后为什么依旧能取得内部属性 removeChildren destroyChildren的区别 [ 55%]

...);//这个对象内部有一个属性为testNum;             this.addChild(_bottomBtn);             trace("测试1 = " + _bottomBtn.testNum + "-" + _bottomBtn);// 测试1 = 1-[object Object]             this.removeChildren();             trace("测试2 = " + _bott...

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

1073. [LayaAir3]动态添加2d物理引擎shape无效 [ 55%]

...g.shapes = [shape];   sp.addComponentInstance(rig);   this.Sprite.parent.addChild(sp);   //设置ide中Sprite节点的shape有效   this.Sprite.getComponent(Laya.RigidBody).shapes = [shape]; 附件 : --> LayaProject_(2).zip 2025-09-12 3 条评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

1074. 求绘制遮罩会引起黑屏的解决办法 [ 55%]

... this.vmask.graphics.drawPie(0, 0, 20, -90, 270, "#000000"); this.progress.addChild(this.progressvalue); this.progressvalue.mask = this.vmask;   this.changevalue = function(value) { this.targetvalue = value; target = parseInt(360 * value - 90);  this.vmask.graphics.clear(); if(target == -90){ //th...

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

1075. 还是同样系统BUG?场景ls可以加载,lh资源加载错误? [ 55%]

...e3d/LayaScene_SampleScene/Conventional/role.lh");        Laya.stage.addChild(rolde); 模型要加在3d场景上 不要加在stage上 2020-01-13 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 大奥 相关问题 2.0一不小心删...

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

1076. 分享:LayaAir实现曲线运动 [ 55%]

... ball=new Sprite(); ball.graphics.drawCircle(0,0,50,"#FF00FF"); Laya.stage.addChild(ball); ball.x=275; ball.y=200; Laya.timer.frameLoop(1,this,onFrame); } private function onFrame():void { // TODO Auto Generated method stub if (ball.x>540||ball.x<10) { xflag=! xflag; } if (xflag) { ball.x+=v; ...

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

1077. 关于纹理的显示问题 [ 55%]

...e.graphics.drawTexture(texture, 0, 0,texture.width,texture.height); this.addChild(sprite);  }      LayaUISample.max.js:19468 Uncaught TypeError: Cannot read property 'width' of undefined     at Texture.moveUV (LayaUISample.max.js:19468)     at GraphicsGL.__proto.drawTexture (LayaUISample.m...

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

1078. laya上显示印地语正确,但是浏览器上展示是错误的 [ 55%]

...回复 陈志桦 赞同来自: 代码示例如下: var a = Laya.stage.addChild(new Laya.Label("ब्राह्मी1"));a.fontSize = 50   启动laya air调试 在控制台输入上面代码,就可以发现问题 2019-09-27 0 3 分享 微博 QZONE 微信 陈志桦 赞同来自: 使用l...

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

1079. input setforbidEdit is not a function [ 55%]

...ileSystemManager is not a function 官方视频教程中飞机大战 "this.addChild is not a function" api readFile success callback function undefined api readFile success callback function undefined 打地鼠发布成微信小游戏后提示gameThirdScriptError this.preinitialize is not a function...

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

1080. 播放一个动画 播放之前头像和名字是要从服务器获取的 请问要怎么弄 [ 55%]

....loadAnimation("ef_zjh_bipai.ani"); //添加到舞台 Laya.stage.addChild(tl); ani的头像组件和名字要怎么获取 洋葱 • 2018-05-31 11:33 要给动画里的组件赋值 Laya_Aaron • 2018-05-31 11:38 查看官网文档和引擎示例。了解引擎机制。再做开发比较...

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