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

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

941. lib/arm/liblayaair.so 总是崩溃 [ 64%]

...ad-5336) 08-14 10:57:49.401 3996-3996/? I/NetworkSpeedManagerEx: mIsStop = false 08-14 10:57:49.402 3996-4122/? D/NetworkSpeedManagerEx: doInBackground 08-14 10:57:49.404 3996-3996/? D/NetworkSpeedManagerEx: onPostExecute 08-14 10:57:49.405 3996-3996/? I/NetworkSpeedManagerEx:  value = 3251.0 08-14...

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

942. laya.d3.math.OrientedBoundBox [ 64%]

...ientedBoundBox  containsSphere(sphere:BoundSphere, ignoreScale:Boolean = false):int 该包围盒是否包含空间中一包围球 OrientedBoundBox  createByBoundBox(box:BoundBox, out:OrientedBoundBox):void[static] 根据AABB包围盒创建一个 OrientedBoundBox 实例。 OrientedBoundBox  cre...

来源: laya_api 发布时间: 20170929

943. 2D物理-碰撞事件与传感器 [ 64%]

... let index = bodyB.getBody().GetUserData().pointer; this.touching[index] = false; } } dispose() { Laya.physicsTimer.clearAll(this); } } new Physics_Physics_CollisionEvent();package { import laya.display.Sprite; import laya.display.Stage; import laya.events.Event; import laya.physics.CircleCollider; ...

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

944. 如何启用摇一摇 [ 64%]

...eMotionEvent){window.addEventListener("devicemotion", deviceMotionHandler, false)'); __JS__('}else{alert("你的设备不支持DeviceMotion事件");}'); __JS__('function deviceMotionHandler(eventData){var acceleration = eventData.accelerationIncludingGravity'); __JS__('var curTime = new Date().getTi...

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

945. laya.events.EventDispatcher_API3.0 [ 64%]

...类型是否有侦听者,如果有侦听者则值为 true,否则值为 false。 hasListener hasListener(type: string): boolean Defined in laya/events/EventDispatcher.ts:21 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 Parameters type: string 事件的类型...

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

946. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 64%]

...private var endTime:int; private var cdTime:int; public var isCd:Boolean = false; public function CdSprite() { super(); this.scrollRect = rect; this.alpha = 0.85; } public function setSize(bian:int):void{ r = bian / Math.SQRT2; rect = new Rectangle(0,0,bian,bian); this.scrollRect = rect; pos = bian ...

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

947. 输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 64%]

...中,相同样式字体字号的字符全局共享一份缓存,默认为false,如果字体需要频繁修改,可以勾选此项以提升性能 文本颜色 color 文本的颜色,可以直接输入颜色值,例如:#ffffff,也可以点击输入条右侧的拾色器选取颜色 样式 st...

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

948. 灯光-聚光 [ 64%]

...(0, 0.7, 1.3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //聚光灯 var spotLight = scene.addChild(new Laya.SpotLight()); spotLight.color = new Laya.Vector3(1, 1, 0); spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); spo...

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

949. laya.d3.core.MeshSprite3D [ 64%]

...Sprite3D off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 EventDispatcher on...

来源: laya_api 发布时间: 20170929

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

...&& ms < Infinity              if (valid === false) {                 if (typeof ms !== 'number' && typeof ms !== 'bigint') {                     throw TypeError('sleep: ms must be a number')          ...

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