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

大约有 813 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0059 秒)

791. Laya中Button等组件lose skin的问题 [ 29%]

...);                 }else {                 for (var i=0;i < this._stateNum;i++){                     this._sources.push(Texture.createFromTexture(img,0,height *i,width,height));                 }             }    ...

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

792. Socket能连接到服务器,客户端发请求也能收到服务端的数据,但是服务端主动推送数据,客户端就是收不到数据? [ 29%]

...ist.splice(index,1); } } public function GetHandler(key:String):IHandler { for(var i:int=0;i<list.length;i+=1) { var handler:IHandler=list.GetHandler(key); if(handler!=null){ return handler; } }  return null; } public function Send(data:String):void { socket.send(data); } private function onSock...

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

793. WebXR · LayaAir3.0文档 · LAYABOX [ 28%]

...lay应用商店。然后在应用商店里搜索安装Google Play Services For AR与Google VR服务。 运行环境不必和本篇完全一样,能安装好Google Play应用商店,和最新版的Chrome浏览器(安卓)即可。 完成以上准备后,才可以正常显示基于webXR标准的...

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

794. 缓动 · LayaAir3.0文档 · LAYABOX [ 27%]

...结束回调函数。 * @param delay 延迟执行时间。 * @param coverBefore 是否覆盖之前的缓动。 * @param autoRecover 是否自动回收,默认为true,缓动结束之后自动回收到对象池。 * @return 返回Tween对象。 */ static from(target: any, props: any, duration: numb...

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

795. 微信小游戏中不能加载proto文件 [ 26%]

...it('/'); if(names[0]=="http:"||names[0]=="https:"){ filename=names[0]+"/"; for(var i=1;i<names.length;i++){ filename+=('/'+names[i]); } } xhr.open("GET", filename); xhr.send();我是这么改的,可以成功把消息发出去了,但是解析又出了问题 gameThirdScriptError Cannot read pro...

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

796. 3D中摄像机绕物体旋转该如何实现? [ 26%]

...K,移动端没试,有问题调试着改一改就OK啦。。import Transform3D = Laya.Transform3D; import Vector3 = laya.d3.math.Vector3; import Quaternion = laya.d3.math.Quaternion; /* 用法: //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera...

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

797. 官方案例里摄像机绕物体旋转脚本的问题 [ 26%]

...ts在2.0版本下有很多接口,属性不存在。比如this.camera.moveForward、 super._initialize(owner)、super._update(state)等,放在1.7版本里是有的。是不是LayaAir.d.ts有修改。现在有别的接口,方法替代吗,我在官方文档里找了好久都没找到。或者...

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

798. UI运行时 · LayaAir3.0文档 · LAYABOX [ 26%]

...找出所有ui下的Button包括子节点下 searchButton(ui: Laya.Node) { for (let i = 0; i < ui.numChildren; i++) { let child = ui.getChildAt(i); if (child instanceof Laya.Button) { console.log("发现Button"); this.onButtonScaleEvent(child); } else { //查找子节点 this.searchButton(child);...

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

799. 缓存工具-layadcc · LayaAir3.0文档 · LAYABOX [ 25%]

...输出目录(保留历史记录需要覆盖) -h, --help display help for command Commands: genpatch [options] <inputDir1> <inputDir2> 生成补丁文件 checkout [options] <inputDir> 把dcc目录恢复成原始结构 例如, 生成DCC资源: layadcc2 ./resource -o ./dccout ...

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

800. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 25%]

...字。 * @return 节点对象。 */ getChildByName(name: string): Node { for (let child of this._children) { if (child && child.name === name) return child; } return null; } 当我们找到子节点时,也可以对节点做一些基础操作,比如删除掉自己方法 removeSelf() /** *...

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