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

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

2631. laya.ui.CheckBox_API3.0 [ 36%]

...th addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout fromParentPoint getBounds getChildAt getChildByName getChildIndex getCo...

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

2632. 获取位置信息 · LayaAir3.4 · 引擎文档 · LAYABOX [ 36%]

...pt extends Laya.Script { constructor() { super(); } onMouseClick(evt: Laya.Event): void { // 尝试获取当前位置 Laya.Geolocation.getCurrentPosition( Laya.Handler.create(this, this.onSuccess), Laya.Handler.create(this, this.onError) ); console.log("click"); } // 成功获取位置后触发 onSu...

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

2633. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 35%]

...gory=3d&group=Resource&name=GarbageCollection)) ```typescript function(e:Event) { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_s...

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

2634. 关于在TS工程中引入微信JS-SDK的问题 [ 35%]

...题 ios原生回调问题 关于Dialog遮罩层移除解决问题的说明 event自定义事件的问题 问题状态 最新活动: 2018-08-16 20:39 浏览: 5141 关注: 3 人 kuma • 2018-07-24 19:47 现在的问题就是如果把微信的js文件引入到本地,在PC端的chrome中是能正确...

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

2635. laya.d3.core.Transform3D [ 35%]

...ds Packagelaya.d3.coreClasspublic class Transform3DInheritanceTransform3D EventDispatcher Object Transform3D 类用于实现3D变换。 Public Properties PropertyDefined By  dummy : AnimationTransform3D 取关联虚拟变换。 Transform3D  forward : Vector3[read-only] 获取向前方向。 Tr...

来源: laya_api 发布时间: 20170929

2636. Sprite-新手引导 [ 35%]

...Container.loadImage("res/guide/crazy_snowball.png"); gameContainer.on(Laya.Event.CLICK, this, this.nextStep); // 引导所在容器 guideContainer = new Sprite(); Laya.stage.addChild(guideContainer); guideContainer.cacheAs = "bitmap"; // 绘制遮罩区,含透明度,可见游戏背景 maskArea =...

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

2637. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 34%]

...gory=3d&group=Resource&name=GarbageCollection)) ```typescript function(e:Event):void { _castType++; _castType %= 2; switch (_castType) { case 0: (e.target as Button).label = "释放显存"; loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (_scene)//_scene不为空表示...

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

2638. 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? [ 34%]

...de> 类用于创建组件的父类。 */ class Component3D extends laya.events.EventDispatcher implements laya.d3.core.render.IUpdate { protected static _uniqueIDCounter: number; protected _id: number; protected _cachedOwnerLayerMask: number; protected _cachedOwnerEnable: boolean; protected _enab...

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

2639. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 34%]

...3d&group=Resource&name=GarbageCollection)) ```typescript function(e:Laya.Event):void { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene...

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

2640. 开放数据域组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 34%]

...焦点时执行回调,发送数据 onAwake(): void { this.owner.on(Laya.Event.BLUR, this, this.sendData) } //将玩家数据上传至云端 sendData() { //组织数据 let KVDataList = []; let text = Number(this.owner.text); if(!isNaN(text) && text >= 0 && text <= 9999) { thi...

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