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

大约有 2,740 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0072 秒)

921. Sprite3D-Sprite3D克隆 [ 68%]

...r layaMonkey_clone2 = scene.addChild(Laya.Sprite3D.instantiate(layaMonkey, null, false, new Laya.Vector3(-0.6, 0, 0))); }class Sprite3DClone { private scene: Laya.Scene; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_N...

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

922. drawToCanvas真机资源无法释放 [ 68%]

...   this._ctx && this._ctx.destroy();         this._ctx=null;     } 在这里,this.ctx并没有destroy方法,native上直接崩溃 2018-12-19 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起...

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

923. 显存优化:纹理压缩的使用(TypeScript-2D进阶篇(TS)-性能优化) [ 68%]

...意这里的加载 Laya.loader.load("res/layabox.ktx", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; })); } else { //注意这里的加载 Laya.Texture2D.load("res/layabox.jpg", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTextu...

来源: Laya2.0_文档 发布时间: 20210714

924. laya.map.TileTexSet_API3.0 [ 68%]

...s:31 动画播放的总时间 durationTimeArray durationTimeArray: any[] = null Defined in laya/map/TileTexSet.ts:29 当前动画每帧的时间间隔 gid gid: number = -1 Defined in laya/map/TileTexSet.ts:17 唯一标识 isAnimation isAnimation: boolean = false Defined in laya/map/TileTexSet.ts:33 ...

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

925. laya.d3.webxr.core.WebXRCamera_API3.0 [ 68%]

...的函数的名称。例如,functionName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void clearTimer clearTimer(caller: any, method: Function): void Inherited from Node.clearTimer Defined in laya/display/Node.ts:609 清理定时器。功能同Laya.ti...

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

926. 简单的震屏效果 [ 68%]

...var vibrateObj = {         x: 0, y: 0, rotation: 0, view: null }; /** * 调用该方法前,请将view的描点设置为中心点 * 震屏效果 * 三个变量:x水平方向  5,y垂直方向  5,rotation旋转角度  10 * @param view * @param time  持续时间 以毫秒...

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

927. 请问:通过Laya.Geolocation来定位存在较大误差(超过1公里),该如何解决? [ 68%]

...hAccuracy = true; Laya.Geolocation.getCurrentPosition( Laya.Handler.create(null, cb_onGeoPositionSuccess), Laya.Handler.create(null, cb_onGeoPositionFail)); } else { alert("您的浏览器不支持使用HTML5来获取地理位置服务"); } } // 回调函数:获取GPS坐标成功后 function cb_onGe...

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

928. laya.d3.core.material.SkyBoxMaterial [ 68%]

...t = 1):void[override] BaseMaterial _parse(data:*, propertyParams:Object = null, constructParams:Array = null):BaseMaterial[static] BaseMaterial _removeReference(count:int = 1):void[override] BaseMaterial clone():* 克隆。 BaseMaterial cloneTo(destObject:*):void 克隆。 BaseMaterial load(url...

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

929. Laya.loader.load 加载场景报错 [ 68%]

...scene = Laya.loader.getRes(模型url); Laya.stage.addChild(this.scene); }),null, null, 1, true, "scene1"); 执行后,浏览器报 : laya.core.js:13290 Uncaught TypeError: node._setParent is not a function at Stage.__proto.addChild (laya.core.js:13290) at Main.<anonymous> (Main.ts:148) at E...

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

930. laya.ui.Dialog_API3.0 [ 68%]

...代替默认的关闭效果,如果不想有任何效果,可以赋值为null 全局默认关闭效果可以通过manager.closeEffect修改 closeHandler closeHandler: Handler Defined in laya/ui/Dialog.ts:176 对话框被关闭时会触发的回调函数处理器。 回调函数参数为用户点...

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