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

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

2491. protobuf 怎么设置值呢 [ 57%]

protobuf 怎么设置值呢 官方给出的是这种方式,var message: any = AwesomeMessage.create( { name: "字母", }); 但如果在.proto使用文件中使用 repeated修饰符定义 repeated int32 foo =1; 怎么给它设置一系列的值呢 2018-06-27 添加评论 免费帖 --> 分享 微...

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

2492. 加载本地项目图片资源 [ 57%]

...出一下,然后把图片放到"bin/res/atlas”下,  代码如下  var ape: Sprite = new Sprite();             Laya.stage.addChild(ape);             ape.loadImage("../../res/atlas/—.png"); 2017-11-08 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 ...

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

2493. Native类型下 启动动画如何关闭 [ 57%]

Native类型下 启动动画如何关闭 var loadingView= window.loadingView; if(loadingView) { loadingView.loadingAutoClose=true; loadingView.loading(100); }构建的AndroidStudio项目 在config.js如上设置 可是启动时还有默认的动画 如何在启动时不显示这个动画呢? 2017...

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

2494. 切换3d模型的材质球 [ 57%]

...内容相关的链接 提交 1 个回复 183*****755 赞同来自: cike007 var mat:StandardMaterial = meshSprite.meshRender.material as StandardMaterial; mat.albedo = new Vector4(3.5, 3.5, 3.5, 1.0); 可以了解下以上API 2017-05-22 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...

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

2495. 怎么引用flash的类库? [ 57%]

...在哪,项目里引用的目录到底是什么? Laya2.0文件模式下var变量怎么引用? 引用MiniAdpter 类,微信开发者工具上运行,加载外部资源必定失败 问题状态 最新活动: 2017-04-03 20:20 浏览: 969 关注: 2 人 vincent • 2017-04-04 14:00 那你们提供...

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

2496. createElement('button') 问题 [ 57%]

createElement('button') 问题 var button = Laya.Browser.window.document.createElement('button'); button.type='button'; button.value ='逐加'; button.src = "xxxxx"; button.style.width = '40px'; button.style.height = '40px'; button.style.background = "../../../bin/res/atlas/assets.png"; // mapDivx....

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

2497. DirectionLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 57%]

...his.directionLight.color = new Laya.Vector3(1, 1, 1); //设置灯光方向 var mat = this.directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); this.directionLight.transform.worldMatrix = mat; ``` ​ **setForward** 平行光的方向,分别代表x、y、z轴上...

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

2498. socket.io的代码提示 [ 57%]

...编码的时候,没有代码提示?????   运行是正常的var socket = io() ;     求,怎样才能代码提示生效啊?! 2019-07-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什...

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

2499. 请问addchildren()具体怎么用 [ 57%]

...   public function addChildren(... args):void {             var i:int = 0, n:int = args.length;             while (i < n) {                 addChild(args[i++]);             }         } 看源码,传入节点数组 2018-08-10 0 2 分...

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

2500. 2.0场景问题? [ 57%]

...场景出来了,但是背景好像还是不对,而且我有个按钮  var buttonMy,但是在处理函数里面输出this是这个场景,而我this.buttonMy却是一个undefind?有没有大佬知道呀? 附件 : --> 2018-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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