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

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

1501. 用ide打包后的图片,Texture显示不出来? [ 69%]

..., onLoaded)); function onLoaded(){     var aa = new Sprite();     Laya.stage.addChild(aa);     var texture = new Laya.Texture();     texture.load('comp/zzw.png' );     setTimeout( function(){         aa.graphics.drawTexture(texture,0,0);     }, 1000 ) } 3Q 2017-12-26 添加评论 ...

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

1502. 缓动动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 69%]

...emo() { // 初始化舞台 Laya.init(1334,750, WebGL); //背景颜色 Laya.stage.bgColor = "#1b2436"; //创建缓动文本 createTween(); } //创建缓动文本 private function createTween():void { //"LayaBox"字符串总宽度 var w:int = 800; //文本创建时的起始x位置(>>在此使用右移...

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

1503. 设置背景透明,在电脑上没有问题,但是在手机上(如微信qq浏览器)是无效的 [ 69%]

...效。 Laya.init(GameConfig.DeviceW, GameConfig.DeviceH, Laya.WebGL); Laya.stage.bgColor = "none";//背景透明 } else { Laya.init(GameConfig.DeviceW, GameConfig.DeviceH); Laya.stage.bgColor = null;//背景透明 } 2018-05-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

1504. laya.ui.Tab_API3.0 [ 69%]

...ion Tab_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/tab.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var tab:Tab = new Tab();/...

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

1505. Panel中添加图片无法显示,文本可以 [ 69%]

... = new Laya.Sprite();     ape1.graphics.drawTexture(t, 0, 0);     Laya.stage.addChild(ape1);     //面板     var panel = new laya.ui.Panel();     panel.width = 500;     panel.height = 500;     panel.x = 200;     var label = new laya.ui.Label();     label.text = "fsadfsdfsdfsdfsdf"...

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

1506. Image和HtmlImageElement加载同一张图会显示不出来 [ 69%]

....innerHTML = "<img src='res/test1.png'/>"; html.pos(150, 100); Laya.stage.addChild(img); Laya.stage.addChild(html); 按照这个顺序,图片test1.png加载不出来 2018-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

1507. layabox 怎么使用 google/blockly [ 69%]

...么使用 google/blockly //初始化引擎 //Laya.init(960, 660); //Laya.stage.bgColor = "#ffffff"; var demoWorkspace:Object = Browser.window.Blockly.inject('blocklyDiv',{toolbox: Browser.document.getElementById('toolbox')}) 不创建laya舞台是直接能玩,但是不知道怎么把Blockly 生成...

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

1508. 用laya自定义了一个2D 项目和3D项目,运行成功发布网页后,用iOS的uiwebview加载这两个网页,进入后台,加载3D网页的会发生崩溃。 [ 69%]

...回复 Laya_Aaron 赞同来自: 失去焦点的时候关了渲染,Laya.stage.RenderingEnable   = false 2018-02-27 0 10 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 RayFor24 相关问题 两个对象new了一个相同的对象,调用...

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

1509. 切换后台时,引擎如何判断是否停止定时器? [ 69%]

...      constructor() {         super();          this.stage.on(Laya.Event.FOCUS, this, this.onFocus);         this.stage.on(Laya.Event.BLUR, this, this.onBlur);         Laya.timer.frameLoop(1,this,this.onFrameLoop);     }      private onFrameLoop():void{...

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

1510. laya.physics.PhysicsDebugDraw_API3.0 [ 69%]

...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrollRect skewX ske...

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