大约有 150 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
Laya_社区(117) Laya2.0_示例(10) Laya_示例(9) Laya3.0_api(4) laya_api(3) Laya2.0_api(3) Laya3.0_文档(2) Laya2.0_文档(2)
...nsform.rotate(new Vector3(Math.PI/2*3,0,0)); var temp:Number = width; width = height; height = temp; // 将锚点移回zho中心 cube.transform.pivot = new Vector3( cube.transform.pivot.x + 0, ...
来源: Laya_社区 发布时间: 20190427
...tate1:Laya.Vector3 = new Laya.Vector3(0, 0, 0); private scaleDelta:number = 0; private scaleValue:number = 0; private layaMonkey_clone1:Laya.Sprite3D; private layaMonkey_clone2:Laya.Sprite3D; private layaMonkey_clone3:Laya.Sprite3D; ...
来源: Laya_社区 发布时间: 20190509
...m; if (progress instanceof Handler) { let h = progress; progress = (value: number) => h.runWith(value); } // @ts-ignore return Scene._load(url, progress).then(scene => { scene.open(closeOther, param); if (complete instanceof Handler) complete.runWith(scene); else if (complete) complete(scene);...
来源: Laya_社区 发布时间: 20250609
...e var m_IsMoving:Boolean = false; private var m_MovStartTime:Number = 0; private var m_MovNeedMs:Number = 0 ; private var m_speed:Number = 150; //每秒移动像素 private var m_curdirection:int = 0 ; private var m_curaniname:S...
来源: Laya_社区 发布时间: 20170921
...用__JS__调用html文件中的函数 您好,请教下,var timestamp:Number = __JS__("getLastModified()"); 原来AS项目中,getLastModified()是写在index.html里面的,用于获取index.html的最后修改时间,现在laya应该写在哪个文件呢? 写在index.html调不到。 报...
来源: Laya_社区 发布时间: 20170621
...on playMusic(url:String, loops:int = 0, complete:Handler = null, startTime:Number = 0):SoundChannel { 你的参数传入是否正确那? 或者能否发一下你出问题部分的代码或者小demo那? 2018-04-17 0 1 分享 微博 QZONE 微信 Apple 赞同来自: 你用普通播放器听听音...
来源: Laya_社区 发布时间: 20180417
... var bone:Laya.Bone = this.mTemplete.mRootBone.findBone("头"); let angle:number = Math.atan2(Laya.stage.mouseY - (this.y - bone.transform.y), Laya.stage.mouseX - (this.x - bone.transform.x))*180/Math.PI; angle = Math.floor(angle); bone.rotation =angle; 2018-06-07 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20180607
...一直打印日志“JCGraphicsCmdDispath::calcBoundingBox Wrong command number!,cmd=-65536” 同样的代码和图片地址在web和iOS平台正常; 代码如下: /** * widget: 放置头像的父节点 * headImgUrl: 微信头像地址 */ function loadHeadImg(widget, headImgUrl) { if (!headImgU...
来源: Laya_社区 发布时间: 20171229
...bg: Laya.Sprite; private knob: Laya.Sprite; private maxRadius: number = 240; private originPoint: Laya.Point; private touchId: number = -1; private isTouching: boolean = false; private deadZone: number = 45; private isEnabled: boolean = true; onAwake...
来源: Laya_社区 发布时间: 20251125
...ape.x=(apesCtn._childs.length)*(stageWidth/4) var bl:Number=texture.width/texture.height ape.graphics.drawTexture(texture,0,0,stageWidth/4,stageWidth/4/bl); apesCtn.addChild(ape); } 2016-10-23 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20161023