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

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

3981. 一篇了解LayaAir的屏幕适配,及有效抗锯齿(TypeScript-LayaAir基础篇(TS)-屏幕适配) [ 42%]

...以在项目代码里强制HDR效果。示例代码如下: ```typescript this.camera = new Laya.Camera(0, 0.1, 100); this.camera.enableHDR = false; //关闭HDR ``` 关闭HDR后,抗锯齿生效对比效果如图9-2所示。 ![10-2](img/10-2.png) (图10-2) #### 2.4 抗锯齿有效,为什么还...

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

3982. 今天打开微信工具出现错误Cannot read property 'USER_DATA_PATH' of undefined [ 42%]

...TH' of undefined Wechat Lib:2.0.1, 2018.4.14 12:32:36 code.js:107 Warning!,this class[MiniAdpter] already exist: {init: ƒ} WAGame.js:3 gameThirdScriptError Cannot read property 'USER_DATA_PATH' of undefined TypeError: Cannot read property 'USER_DATA_PATH' of undefined     at Function.MiniFileMgr....

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

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

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

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

3984. 如何监听移动端软键盘的弹出和收回? [ 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

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

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

3987. 分享个资源加载的方法,类似白鹭的加载方式 [ 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

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

3989. 材质-物理基础渲染材质 [ 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_示例 发布时间: 20251223

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