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

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

3991. 分享:截屏! [ 42%]

...的canvas区域进行截屏             Laya.stage.on(Event.CLICK,this,onClick);             //随意绘制显示对象             sp= new Sprite();             sp.loadImage("logo.png");             Laya.stage.addChild(sp);         }         ...

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

3992. laya.ui.ScaleBox_API3.0 [ 42%]

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

3993. 如何监听移动端软键盘的弹出和收回? [ 42%]

...IF-JS]sourceHeight = Laya.window.innerHeight; if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { textInput=new TextField(); textInput.type=TextFieldType.INPUT; textInput.border=true; textInput.multiline=true; textInput.wordWr...

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

3994. laya.ui.Box_API3.0 [ 42%]

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

3995. laya.ui.AdvImage_API3.0 [ 42%]

... 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 发布时间: 20231102

3996. 分享个资源加载的方法,类似白鹭的加载方式 [ 42%]

...ets.push(RES.resources[j]); } } } Laya.loader.load(assets,new Laya.Handler(this,function(arg){ RES.getInstance().event(RES.ONLOADGROUPCOMPLETE,arg); })) } /** * 获取资源 resName 资源名 isAtLas 是否是图集 */ public static getRes(resName:string, isAtLas: boolean = false): any{ var url: str...

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

3997. 材质-物理基础渲染材质 [ 42%]

...v/' + env + '/envinfo.json'; Laya.loader.load(envinfo, Laya.Handler.create(this, onEnvDescLoaded, [envinfo, '../../res/threeDimen/env/' + env + '/'])); function onEnvDescLoaded(envinfo, envpath) { var envinfoobj = Laya.loader.getRes(envinfo); var camera = new Laya.Camera(0, 0.1, 1000); if (envinfoob...

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

3998. laya.ui.OpenDataContextView_API3.0 [ 42%]

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

3999. laya.ui.Panel_API3.0 [ 42%]

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

4000. laya.ui.LayoutBox_API3.0 [ 42%]

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