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

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

1141. 2.x引擎项目升级说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 37%]

...事件监听方式和Laya.Script命名函数方式处理输入。例如: this.aNode.on(Laya.Event.CLICK, ()=> { console.log("clicked"); }); class MyScript extends Laya.Script { //脚本事件 onMouseClick(e:Event) { console.log("clicked"); } } aNode.addComponent(MyScript); 以上两种方式是...

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

1142. 只要引入protobuf就会导致连接网络失败 [ 36%]

...onfigEventDispatcher.getInstance().on(ConfigEventDispatcher.CFG_PARSE_COM, this, parseCfgCom); // 解析游戏配置表数据 ConfigMgr.dataInfoComplete(); }    ConfigMgr.dataInfoComplete(); 里面有许多异步 这步卡住了  IDE运行没问题 layaTest9.zip 2018-02-08 0 0 分享 微博 QZONE...

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

1143. laya.ui.Slider_API3.0 [ 36%]

... 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

1144. laya.ui.Image_API3.0 [ 36%]

...宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.onInit(); } private onInit(): void { var bg: laya.ui.Image = new laya.ui.Image("resource/ui/bg.png");//创建一个 Image 类的实例对象 bg ,并传入它的皮肤。 bg.x = 100;//设置 bg 对象的属性 x 的值,...

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

1145. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 36%]

...on Laya.loader.load([{url: "res/Image.json", type: "plf"}], Handler.create(this, function():void { //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:Sprite = new S...

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

1146. laya.display.Stage_API3.0 [ 35%]

...器。功能同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:546 当前容器是否包含指定的 Node 节点对象 ...

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

1147. laya.ui.View_API3.0 [ 35%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void close close(type?: string): void Inherited from Scene.close Defined in laya/display/Scene.ts:149 关闭场景 【注意】被关闭的场景,如果没有设...

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

1148. laya.ui.ScrollBar_API3.0 [ 35%]

... 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

1149. laya.ui.TextInput_API3.0 [ 35%]

...背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textInput:TextInput = new TextInput("这是一个TextInput实例。");//创建一个 TextInput 类的实例对象 textInput 。 textInput...

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

1150. laya.ui.Label_API3.0 [ 35%]

...宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.onInit(); } private onInit(): void { var label: Label = new Label();//创建一个 Label 类的实例对象 label 。 label.font = "Arial";//设置 label 的字体。 label.bold = true;//设置 label 显示为粗体。 la...

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