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

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

141. laya.events.EventDispatcher [ 65%]

... EventDispatcher  offAllCaller(caller:*):EventDispatcher 移除caller为target的所有事件监听 EventDispatcher  on(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher 使用 EventDispatcher 对象注册指定类型的事件侦听器对象,以使侦听器能够接...

来源: Laya2.0_api 发布时间: 20190513

142. laya.d3.math.Quaternion_API3.0 [ 65%]

...数 Returns number 点积 Static forwardLookAt forwardLookAt(eye: Vector3, target: Vector3, up: Vector3, out: Quaternion): void Defined in laya/d3/math/Quaternion.ts:527 计算观察四元数(适用gameObject) Parameters eye: Vector3 观察者位置 target: Vector3 目标位置 up: Vector3 上...

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

143. 鼠标交互-修正交互区域 [ 65%]

...**侦听处理方法*/ function onDown(e) { logger.text += "点击 - " + e.target.name + "\n"; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Inter...

来源: Laya_示例 发布时间: 20241001

144. laya.d3.core.Transform3D [ 64%]

...检测指定事件类型是否是鼠标事件。 EventDispatcher  lookAt(target:Vector3, up:Vector3, isLocal:Boolean = false):void 观察目标位置。 Transform3D off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器...

来源: laya_api 发布时间: 20170929

145. 解决游戏最小化退到后台后浏览器会强制1秒执行一次ILaya.stage._loop() [ 64%]

...than Infinity')             }             const target = Date.now() + Number(ms)             while (target > Date.now()){}         }         postMessage(['ok']);     } catch (e) {         console.log("Exception in wait...

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

146. 鼠标交互-修正交互区域 [ 64%]

...ger); } /**侦听处理方法*/ onDown(e) { logger.text += "点击 - " + e.target.name + "\n"; } } new Interaction_FixInteractiveRegion();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import Browser = Laya.Browser; import We...

来源: Laya2.0_示例 发布时间: 20241001

147. 屏幕适配-屏幕适配 [ 64%]

...)(); function onBoyClick(e) { //点击后小人会放大缩小 var boy = e.target; if (boy.scaleX === 1) { boy.scale(1.2, 1.2); } else { boy.scale(1, 1); } } function onTxtClick(e) { //点击后切换适配模式 e.stopPropagation(); index++; if (index >= modes.length) index = 0; Laya.stage.scaleMod...

来源: Laya_示例 发布时间: 20241001

148. iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 [ 64%]

...ctionArea.graphics.clear(); this.interactionArea.graphics.drawCircle(pos.x+target.width*scale*0.5, pos.y+target.height*scale*0.5, step.radius * scale, "#000000"); 附件 : --> 2017-12-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

149. 屏幕适配-屏幕适配 [ 64%]

....onResize); } onBoyClick(e) { //点击后小人会放大缩小 let boy = e.target; if (boy.scaleX === 1) { boy.scale(1.2, 1.2); } else { boy.scale(1, 1); } } onTxtClick(e) { //点击后切换适配模式 e.stopPropagation(); index++; if (index >= modes.length) index = 0; Laya.stage.scaleMode = modes...

来源: Laya2.0_示例 发布时间: 20241001

150. LayaAir打包发布PC或MAC平台的桌面应用程序 [ 63%]

...d": "com.lear.game1", "copyright":"Lear", "productName":"game1", "mac": { "target": [ "dmg", "zip" ] }, "win": { "target": [ "nsis", "zip" ] } } } 复制代码[/code] 由于官方镜像下载过慢,所以使用了淘宝源:[code] "electronDownload":{ "mirror":"https://npm.taobao.org/mirrors/elec...

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