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

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

131. laya.d3.core.Camera_API3.0 [ 73%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Camera Overrides RenderableSprite3D.clone Defined in laya/d3/core/Camera.ts:758 Returns Camera contains contains(node: Node): boolean Inherited...

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

132. laya.ui.RadioGroup_API3.0 [ 73%]

...背景颜色。 Laya.loader.load(["resource/ui/radio.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var radioGroup:RadioGroup = new RadioGroup();//创建一个 RadioGroup 类的实例对象 radioGroup 。 radioGroup.pos(100, 100);//设置 ra...

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

133. 聊天消息对话框中new一个HTMLDivElement 报错"Illegal constructor",请问这个该怎么处理? [ 73%]

...eView extends Laya.Box{ textfield : any = null; constructor(){ super(); // this.initLineView(); } public initLineView (data) : void { this.pos(0,0); console.log(this.textfield); if (this.textfield == null) { var stextfield = new HTMLDivElement(); } } 2018-07-09 添加评论 免费帖 --> 分享 微...

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

134. 打飞机点开始游戏加载飞机动画不出来,点重新开始,才出来,新手求助! [ 73%]

... onLoaded() { start = new GameStartUI(); start.btn_start.on(Event.MOUSE_UP,this,gameInit) Laya.stage.addChild(start); } function gameInit() { map = new GameBgUI(); Laya.stage.addChild(map); play = new GamPlayUI(); Laya.stage.addChild(play); hero = new Hero("hero", 25) hero.pos(100,200) Laya.stage.ad...

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

135. laya.html.dom.HTMLDivElement_API3.0 [ 73%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Inherited from Node.contains Defined in laya/display/Node.ts:536 当前容器是否包含指定的 Node 节点对象 ...

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

136. [0]Timer的偶发性Bug [ 73%]

...回复 cmxStar 赞同来自: 我们项目也遇到过这bug, 改成 delete this._map[handler.key]; 2023-10-26 0 2 分享 微博 QZONE 微信 _Nodep_ 赞同来自: 嗯,合理 2023-10-26 0 0 分享 微博 QZONE 微信 开房车环游世界 赞同来自: Tween 偶尔停止 我记得当年做laya1.0...

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

137. laya.ui.UIComponent_API3.0 [ 73%]

... showTips1; //带参数的自定义鼠标提示 clip.toolTip = new Handler(this,showTips2, ["clip"]); } private function showTips1():void { _testTips.label.text = "这里是按钮[" + btn1.label + "]"; tip.addChild(_testTips); } private function showTips2(name:String):void { _testTips.label.text = "...

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

138. [LayaAirIDE3]Laya.loader.on(Event.ERROR, this, this.onError) 无法侦听到加载资源失败 [ 73%]

[LayaAirIDE3]Laya.loader.on(Event.ERROR, this, this.onError) 无法侦听到加载资源失败 laya3 加载资源后使用 Laya.loader.on(Event.ERROR, this, this.onError) 无法获得加载失败响应,根据示例里的错误处理和进度操作也得不到错误的响应,laya2里是可以的...

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

139. 如何在laya中直接使用proto中定义的enum? [ 73%]

...rotoBuf:any = Browser.window.protobuf;     ProtoBuf.load("type.proto", this.onProtoLoaded);     ProtoBuf.load("Lobby/protobuf/client2world_protocol.proto", this.onProtoBufLoaded1); } function onProtoLoaded(err:any, root:any):void{     if (err)         throw err;     root_prot...

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

140. laya.d3.webxr.core.WebXRCamera_API3.0 [ 72%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Camera Inherited from Camera.clone Overrides RenderableSprite3D.clone Defined in laya/d3/core/Camera.ts:758 Returns Camera contains contains(no...

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