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

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

571. 对齐模式:水平对齐与垂直对齐(JavaScript-LayaAir基础篇(JS)-屏幕适配) [ 67%]

...我们用水平居中和垂直居中的Demo 进行演示: ```javascript (function() {     var Stage = Laya.Stage;     var WebGL  = Laya.WebGL;        (function()     {             //初始化舞台,不支持WebGL时会自动切换至Canvas          ...

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

572. Cannot read property 'offCanplay' of null [ 67%]

...perty 'offCanplay' of null at n.onCanPlay (https://usr/game.js:39:9226) at Function.t (https://lib/WAGameSubContext.js:2:153278)Cannot read property 'offCanplay' of null;at audioContext.oncanplay callback function TypeError: Cannot read property 'offCanplay' of null at n.onCanPlay (https://usr/game....

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

573. 关于mouseThough=true的问题 [ 67%]

...ea,可以设置多边形点击区域 shiyang • 2018-03-14 15:50 public function LateTest() { Laya.init(400,400,WebGL); Laya.stage.bgColor = "#ff0000"; // trace(Laya.timer.toString()); // Laya.timer.callLater(this,onLater); // trace(Laya.timer.toString()); var assets:Array = []; assets....

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

574. JS进度条加载问题 [ 67%]

...的JS语法,发现有几个问题,想请教一下; var progressBar; (function () { Laya.init(720, 1280); var pro1={url:"comp/BG1.jpg",type:Laya.Loader.IMAGE}; var pro2={url:"comp/BG1.jpg",type: Laya.Loader.IMAGE}; var proArr = []; proArr[0]=pro1; proArr[1]=pro2; Laya.loader.load(proArr,Laya.Ha...

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

575. 微信关系链开发中,开放域发布的代码会报错 [ 67%]

...码会出现报错,Uncaught TypeError: wx.getFileSystemManager is not a function 附件 : --> 2018-06-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 156*****180 赞同来自: 主域 Laya.init(true); 子域 La...

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

576. Web Storage数据存储(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 67%]

....LocalStorage; import laya.utils.Browser; public class LayaSample { public function LayaSample() { Laya.init(100,100); LocalStorage.setItem("key","hello"); LocalStorage.setItem("data","hello"); var data:Object = {"index":0,"index1":1}; LocalStorage.setJSON("item",data);//直接传入Object,接口...

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

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

...rt laya.ui.Label; import laya.webgl.WebGL; public class DemoLabel { public function DemoLabel() { Laya.init(800, 600, WebGL); Laya.stage.bgColor = "#232628"; //---------------------------------这是用我自己写的label继承了官方的label,问题是label显示不出来,但是也无报错--...

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

578. 发现TimeLine的一些问题,像是BUG [ 67%]

...ne; private var timeLine2:TimeLine; private var timeLine3:TimeLine; public function AirDemo() { //初始化引擎 Laya.init(600, 400); Stat.show(); //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function o...

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

579. 3D场景-场景加载 [ 67%]

...tils.Stat; import common.CameraMoveScript; public class SceneLoad { public function SceneLoad() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); var scene:Scene = Laya.stage.addChild(Scene.load("../../../../res/threeDimen/sce...

来源: Laya_示例 发布时间: 20261113

580. Sprite设置mask属性为什么显示是透明的?怎样才能显示正常? [ 66%]

...设置mask属性为什么显示是透明的?怎样才能显示正常? (function () { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var HitArea = Laya.HitArea; var WebGL = Laya.WebGL;  var red; var guideContainer; var tipContainer;  var hitArea; var interactionArea;  (function () { Config....

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