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

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

721. 寻路系统(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 62%]

...ish():void{ // .......前面摄影机,猴子精灵相关操作忽略 var heightMap = Laya.Loader.getRes("res/threeDimen/scene/TerrainScene/Assets/HeightMap.png"); //初始化MeshTerrainSprite3D this.terrainSprite = MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.meshFilter.sharedMesh a...

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

722. 屏幕适配API概述(JavaScript-2D基础篇(JS)-屏幕适配) [ 62%]

...   设备像素分辨率:Laya.Browser.clientWidth,Laya.Browser.clientHeight;   设备物理分辨率:Laya.Browser.width,Laya.Browser.height;   像素比:Laya.Browser.pixelRatio;    默认从浏览器获得的clientWidth不是像素分辨率,而是经过缩放过的分辨率...

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

723. 自己写了个label继承官方的label,出现了问题,求指导~ [ 62%]

...textFormat = textFormat; label.wordWrap = true; label.lWidth = 100; label.lHeight = 100; label.txt = "Hello"; label.lx = 100; label.ly = 100; Laya.stage.addChild(label); //---------------------------------这是用官方的api,无问题-------------------------------------------- // var label:laya...

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

724. 怎么实现一个Timer的loop的delay时间越来越短? [ 62%]

...同来自: public function LayaAirDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#EEFFCC"; sp=new Sprite(); sp.graphics.drawRect(0,0,200,200,"#FF0000"); Laya.stage.addChild(sp); Laya.timer.loop(delay,this,onLoop); } private function onLoop():void { delay-=50; sp.x+=20; Laya.ti...

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

725. Laya.init(600,400,laya.webgl.WebGL);这里的600,400能否动态设置,比如手机上,获取显示区域的大小,传给引擎。 [ 62%]

... 提交 1 个回复 hj 赞同来自: Laya.init(Laya.stage.width,Laya.stage.height); 2018-09-18 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 george 相关问题 看了其他引擎才发现 LAYA 真的太太太太好用了!!!! ...

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

726. List属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 62%]

...eatY = 4; list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, this.onSelect); list.renderHandler = new Handler(this, this.updateI...

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

727. laya.display.Input_API3.0 [ 62%]

...ISIBLE _passwordChar drawtocanvCtx isAppUseNewInput langPacks Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY bgColor blendMode bold borderColor cacheAs color components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize ...

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

728. ios下截图会导致全屏闪烁一下 [ 62%]

...会导致全屏闪烁一下 page.drawToCanvas(Laya.stage.width,Laya.stage.height,0,0).getCanvas().toDataURL(); 测试是执行这句代码的时候发生的,实际上就是屏幕瞬间黑了一下,然后恢复。请问有解决方案吗?在android上没有出现 2017-10-25 添加评论 免费...

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

729. Resources already exist,is repeated loading 加载特效报重复加载 [ 62%]

... this.sp.x = Laya.stage.width / 2;         this.sp.y = Laya.stage.height / 2;     } } 打印的报错: 11111111111 TransformDemo.ts:73 Resources already exist,is repeated loading: D:/myLaya/myLaya/bin/res/threeDimen/particle/2d.lh laya.core.js:16639 [warn]Retry to load: null laya.core...

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

730. laya.ui.ScrollBar_API3.0 [ 62%]

...riggerDownDragLimit triggerUpDragLimit upButton drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOpt...

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