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

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

3901. LayaAir中怎么使用node.js 的 socket.io [ 48%]

...ct(); as的使用方法 var xx:* = __JS__('io.connect()'); xx.on('connect',function():void{trace("dddd")}); piaobo80 • 2017-08-18 14:12 如果ts呢引入js后改怎样在ts中调用呢? Laya_XS • 2017-08-19 14:36 你需要弄个TS的接口提示文件,引入js在ts中是一样的 p...

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

3902. layaMaxUI.ts的自动生成代码bug [ 48%]

... '../SceneBase' import View=Laya.View; import Dialog=Laya.Dialog; var REG: Function = Laya.ClassUtils.regClass; export module ui { export class MainSceneUI extends Laya.SceneBase { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("MainScene"); } } REG("ui.MainSc...

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

3903. 【初学者】导入模型进行旋转结果出现问题 [ 48%]

...new Laya.Vector3(1,0,0); //每10毫秒旋转一次 Laya.timer.loop(10,null,function(){ box.transform.rotate(vect,true,false); }); 以上是代码 出现的问题是有一个物体 然后另外一个物体在旋转 2018-08-08 添加评论 已悬赏2元 --> 分享 微博 QZONE 微信 没有找到相...

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

3904. Mesh模型能否动态合并? [ 48%]

...a.Quaternion(0.7071068, 0, 0, -0.7071067); //Laya.timer.frameLoop(1, this, function () { // layaMonkey.transform.rotate(this.rotation, false); //}); }这种是没法合并的吧!100个drawcall 2018-03-29 0 0 分享 微博 QZONE 微信 jinqi166 赞同来自: 我的游戏比较特殊,场景是空...

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

3905. spine骨骼动画如何获取某个骨骼的坐标 [ 48%]

...param nameOrIndex * @param boneName * @return 骨骼坐标列表 */ public function getBoneCoords(nameOrIndex:*, boneName:String):Array { var arrCoords:Array = ;   var aniClipIndex:int = getAniClipIndex(nameOrIndex); var curOriginalData:Float32Array = new Float32Array(_templet.getTotalkeyframesLeng...

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

3906. Animation 使用疑问 [ 48%]

...时大概 playAniBody(actionName: string, direction: number, completeFun: Function = null): void {          this.aniBody.destroyChildren();          this.aniBody.clear();         let loopPlay: boolean = true;         let key: string = actionName + "_" + Math.abs(direction);     ...

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

3907. laya3.0 [场景启动前闪屏] 我想在闪屏界面加个进度但是onProgress接口有问题 [ 48%]

...请教下有小伙伴用过闪屏里面onProgress接口嘛(index.html内的function onProgress),我想在闪屏界面加个进度。为什么接口回调的参数progress是从0到0.5啊,我的引擎版本是3.0.0正式版。我现在为了显示0-100这么用这个回调  Math.trunc(progress ...

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

3908. laya.d3.core.particleshuriken.module.shape.BoxShape_API3.0 [ 48%]

...ss with type parameter Constructor Property Method Object literal Variable Function Type alias Enumeration Interface Inherited property

来源: Laya3.0_api 发布时间: 20231115

3909. layabox AS3调用JS的示例有吗?(谢谢)。如果没有麻烦指点一二。求助。 [ 48%]

... 2017-04-17 0 1 分享 微博 QZONE 微信 debuggerx 赞同来自: private function initCannon():void { var CANNON:Object = Browser.window.CANNON; world = new CANNON.World(); world.gravity.set(0, 0, -9.8); // 设置碰撞检测类型 world.broadphase = new CANNON.NaiveBroadphase(); var groundShape:O...

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

3910. 构建报错,TypeScript error: node_modules/@types/node/base.d.ts' not found. [ 48%]

...动生成的ui代码报错 导微信小程序报错window.focus is not a function 问题状态 最新活动: 2020-01-07 16:32 浏览: 4686 关注: 1 人

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