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

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

261. as3字符串截取int的问题 [ 58%]

...报错Uncaught ReferenceError: int is not defined function DConfig(){}; __class(DConfig,'DConfig'); __getset(1,DConfig,'GamrRoomEnterPower',function(){ return DConfig.gamrRoomEnterPower; },function(value){ DConfig.gamrRoomEnterPower=value; console.log(DConfig.gamrRoomEnterPower.length); console.log(...

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

262. l微信开放域无法显示,但是可以正常传数据 [ 58%]

...port GameConfig from "./GameConfig"; import BigRank from "./view/BigRank"; class Main { constructor() { //设置子域 Laya.isWXOpenDataContext = true; Laya.isWXPosMsg = true; //根据IDE设置初始化引擎 Laya.init(GameConfig.width, GameConfig.height,false); Laya.stage.scaleMode = GameConfig.sca...

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

263. 天空穹不显示 [ 58%]

天空穹不显示 export default class GameUI extends Laya.Scene { constructor() { super(); //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100)...

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

264. Laya.timer.once计时不准确的问题 [ 58%]

...er.once计时不准确的问题 import WebGL = Laya.WebGL; // 程序入口 class GameMain{ constructor() { Laya.init(600,400, WebGL); console.log("Before In One, Time = " + Date.now()); Laya.timer.once(1,this,this.One) console.log("After In One, Time = " + Date.now()); } One():void{ console.log("In ...

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

265. laya.net.Loader [ 58%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderProperties | Methods | Events | Constants Packagelaya.netClasspublic class LoaderInheritanceLoader EventDispatcher Object Loader 类可用来加载文本、JSON、XML、二进制、图像等资源。 Public Prope...

来源: Laya2.0_api 发布时间: 20190513

266. graphics绘制报错 [ 58%]

graphics绘制报错 class Sprite_DisplayImage { constructor() { Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL); const path = "./res/apes/monkey2.png"; Laya.loader.load(path, Laya.Handler.create(this, function() { let tex = Laya.loader.getRes(path); let sp = new Laya.Spr...

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

267. swf预加载问题 [ 58%]

...EventDispatcher; import laya.net.Loader; import laya.utils.Handler; public class BeforLoader extends EventDispatcher { public static const BEFORLOADERFINISH:String = "BeforLoaderFinish"; private const ADDONE:String = "bingan/AddOne.swf"; private const BG:String = "bingan/bg.swf"; private const CDOWN...

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

268. 今天升级到2.0,有个问题搞懵逼了。求解 [ 58%]

...的Import 20+次? 而且被导入文档 首行必须有 export default class******* 这升级后 怎么写起来更麻烦了?还是说我没找到简便方式?? 求解 图1: 图2   问题二: 例如1.9我可以这样使用带命名空间的文档,,但是由于2.0需要Import什么...

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

269. Animation 的createFrames 使用已经加载的图集缓存动画失败 [ 58%]

...件的形式上传,我们好方便快速的查找问题。     public class Animation_Altas { private const AniConfPath:String = "res/fighter/fighter.json"; private var fly:Animation; public function Animation_Altas() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Br...

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

270. 用HTMLIframeElement加载优酷视频报错 [ 58%]

...: package {     import laya.html.dom.HTMLIframeElement;     public class LayaSample {         public function LayaSample() {             Laya.init(640,1136);             var iframe = new HTMLIframeElement();             iframe.href = 'http://player.youku.com/...

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