大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0081 秒)
Laya_社区(2475) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(35)
...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
... '../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
...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
...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
...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
...时大概 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
...请教下有小伙伴用过闪屏里面onProgress接口嘛(index.html内的function onProgress),我想在闪屏界面加个进度。为什么接口回调的参数progress是从0到0.5啊,我的引擎版本是3.0.0正式版。我现在为了显示0-100这么用这个回调 Math.trunc(progress ...
来源: Laya_社区 发布时间: 20231103
...ss with type parameter Constructor Property Method Object literal Variable Function Type alias Enumeration Interface Inherited property
来源: Laya3.0_api 发布时间: 20231115
... 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
...动生成的ui代码报错 导微信小程序报错window.focus is not a function 问题状态 最新活动: 2020-01-07 16:32 浏览: 4686 关注: 1 人
来源: Laya_社区 发布时间: 20200107