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

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

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

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

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

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

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

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

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

726. 分享:销毁龙骨动画! [ 62%]

...ublic function ASDemo() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); var DesBtn:Sprite = createButton("销毁动画"); DesBtn.x = 50; DesBtn.y = 50; Laya.stage.addChild(DesBtn); //创建一个Sprite充当音乐播放按钮 var addBtn:Sprite...

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

727. 寻路系统(ActionScript-3D基础(AS3)-LayaAir3D之高级应用) [ 62%]

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

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

728. 屏幕适配API概述(ActionScript-2D基础篇(AS3)-屏幕适配) [ 62%]

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

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

729. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 62%]

...nIndex = 0; (function() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); })(); function startFun() { mAniPath = "res/spine/spineRes1/dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on...

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

730. 动态加载代码后,总是出现 ProgressBar is not a constructor [ 62%]

...2;//400; pBar.x = (Laya.stage.width - pBar.width) / 2; pBar.y = Laya.stage.height / 2; 。。。 }这是 progressBar 资源加载完毕之后,构造progressBar的脚本。 总是在这里出现错误,如下:   ncaught TypeError: ProgressBar is not a constructor at onLoadComplete (game.js:81) ...

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