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

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

361. 微信开放数据域加载图片后报错 Cannot read property 'USER_DATA_PATH' of undefined [ 65%]

...有其他可行的方法吗     //子域代码示例  public function LayaSample() {             MiniAdpter.init(true,true);             Laya.init(800,600);              Laya.stage.scaleMode = Stage.SCALE_FIXED_AUTO;             Laya.stage.bgColor ...

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

362. drawTexture 画出来的数据会有以前的数据 [ 64%]

... runGame1():void { xNum = Math.random()*7 - 3; yNum = Math.random()*7 - 3; Laya.timer.loop(20,this,onRun); Laya.timer.frameLoop(10,this,refresh); } private function refresh():void { IconSpr.graphics.clear(); iconSpr.graphics.clear(); if(htmlCanvas) htmlCanvas.clear(); htmlCanvas = iconSpr.drawToCanv...

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

363. 舞台旋转问题 [ 64%]

...19 0 0 分享 微博 QZONE 微信 liangge 赞同来自: 这就是例子 是layaide默认穿件的ui项目 我就是把例子的组件容易 rotation设置了 90度 别的没改动 test.rar 2018-01-19 0 0 分享 微博 QZONE 微信 liangge 赞同来自: 例子里面的滑条 你点 左右拖很费劲...

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

364. skin加载url资源不会刷新 [ 64%]

skin加载url资源不会刷新 代码如下           Laya.loader.clearRes("http://10.144.1.20:8081/files/ ... 6quot;);         var test: Texture = Laya.loader.getRes("http://10.144.1.20:8081/files/ ... 6quot;);         Laya.loader.load("http://10.144.1.20:8081/files/ ... ot%3B, Handl...

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

365. 屏幕方向:自动横屏与自动竖屏的设置详解(TypeScript-LayaAir基础篇(TS)-屏幕适配) [ 64%]

...> ### 1、屏幕方向设置的API概述 打开引擎的API文档,搜索[laya.display.Stage](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=Core&category=display&class=laya.display.Stage),找到screenMode属性。如图1所示。 ![图1](img/1-1.png) (图1) ####...

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

366. 在 tiledmap 插入一个精灵在上面 [ 64%]

...层可以是对象层 也可以是格子 class GameInfo{ private tiledMap: Laya.TiledMap; private sp:Laya.Sprite;   constructor(){   console.info("start");   this.init(); } init():void{   Laya.init(800, 700, Laya.WebGL);   Laya.loader.load("res/atlas/images.atlas",Laya.Handler.create(this,this....

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

367. 如何从代码中创建UI,progressbar [ 64%]

...n="commonUI/anniu05a.png" progressBar.pos(100,100); progressBar.value=0.5; Laya.stage.addChild(progressBar); 后台: Failed to load resource: net::ERR_FILE_NOT_FOUND(FILE///..../bin/commonUI/anniu05a$bar.png) [warn]Retry to load:/......./bin/commonUI/anniu05a$bar.png 但能显示出来, 2.skin...

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

368. graphics持续绘制扇形问题 [ 64%]

...aded():void { //实例UI界面 var testView:TestPageUI = new TestPageUI(); Laya.stage.addChild(testView);   pie = new Sprite(); Laya.stage.addChild(pie); Laya.timer.frameLoop(1,this,onLoop); }   private var curAngle:Number = 0; private function onLoop():void { pie.graphics.drawPie(300,300,100,curA...

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

369. 调用创建微信授权按钮时,授权按钮有时候显示有时候不显示 [ 64%]

...时,授权按钮有时候显示有时候不显示 在同一手机上,laya调用创建微信授权按钮,代码执行了没有异常情况,有时候表示授权按钮,有时候不显示,以下是我创建按钮代码 var button:Object = wx.createUserInfoButton(             { ...

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

370. drawToCanvas绘制显示不全 [ 64%]

...screen.height + 'px';         style.width = Math.floor(screen.height / Laya.stage.height * Laya.stage.width) + 'px';         document.body.appendChild(this.nativeImg)     }     onEnable() {         Laya.timer.once(1000, this, this.delayShowImg);     }     delayShowImg() {     ...

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