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

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

1661. Laya2.5编译后有问题Laya前面多出一个Laya [ 67%]

...Laya2.5编译后有问题Laya前面多出一个Laya 如图正常写法Laya.stage   但是laya2.5 TS实验版编译后是Laya.Laya.stage。 这样导致Laya["MiniAdpter"]就成了  Laya.Laya["MiniAdpter"]就会报错 附件 : --> Test2.5TsNew_.zip 2020-01-14 添加评论 免费帖 --> 分享 微...

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

1662. laya.ui.ViewStack_API3.0 [ 67%]

...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D items left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scen...

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

1663. 用iframe内嵌网页及适配 [ 67%]

...)[0]; body.appendChild(iframe); //适配处理 var frameWidth = 720 * Laya.stage.clientScaleX; var frameHeight = 1280 * Laya.stage.clientScaleY; var styleStr = "position: absolute; left: {0}px; top: {1}px; z-index: 100009;";//laya 的index是100000 var str = styleStr.format((laya.utils.Browser.width...

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

1664. 分享问题解决,关键词:canvas不在左上角,鼠标点击位置偏移怎么办 [ 67%]

.../ this._point.setTo(e.pageX || e.clientX, e.pageY || e.clientY); if (this._stage._canvasTransform) { this._stage._canvasTransform.invertTransformPoint(this._point); _this.mouseX = this._point.x; _this.mouseY = this._point.y; } _this._event.touchId = e.identifier || 0; this._tTouchID = _this._event.t...

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

1665. 局部坐标转全局坐标结果与预期相差甚远 [ 67%]

...很远了 2018-12-19 0 4 分享 微博 QZONE 微信 LT 赞同来自: Laya.stage.addChild(this); Laya.timer.once(500,this,test); 转坐标放在后面加了个延时执行。。就没问题了。。应该是执行的时候组件还没有全部加进stage。。 2018-12-20 0 0 分享 微博 QZONE 微...

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

1666. 替换了启动画面,画面被放大了,请问启动画面的size可以设置吗? [ 67%]

... 微博 QZONE 微信 ZMLaya 赞同来自: 亲,我在程序入口将 Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT,这样不行吗? 你说的调整ui大小,该怎么调呢?是在load.js文件里调整吗?如果方便的话,给我详细说明一下好吗?拜托了。谢谢 2017-12-1...

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

1667. LayaNative端使用.ttf字体 [ 67%]

...ler; public class Test { public function Test() { Laya.init(550,400); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("hu.ttf",Handler.create(this,onLoaded),null,Loader.BUFFER); } private function onLoaded():void { var arr:ArrayBuffer=Laya.loader.getRes("hu.ttf"); if(Browser.window.conch) { Browser.w...

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

1668. laya.ui.VBox_API3.0 [ 67%]

...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scro...

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

1669. CheckBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 67%]

...WebGL渲染模式 Laya.init(1334,750, WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoad回调方法 Laya.loader.load([skin1,skin2], Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个CheckBox实例cb1 var cb1:Check...

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

1670. 运行第一个hello,一直黑屏,没有东西显示出来 如何解决? [ 67%]

...本的显示起点位置X,Y txt.pos(60,100); //设置舞台背景色 Laya.stage.bgColor = '#23238E'; //将文本内容添加到舞台 Laya.stage.addChild(txt); 2017-10-19 0 0 分享 微博 QZONE 微信 keailuo 赞同来自: 这个是整个demo hello.rar 2017-10-19 0 0 分享 微博 QZONE 微信 为...

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