大约有 1,493 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0096 秒)
Laya_社区(918) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(73) laya_api(2) Laya2.0_api(2)
...ivElement = new Laya.HTMLDivElement(); p.name == "headIcon"; this.img_head.addChild(p); var html: string = "<img src='" + imgUrl + "'/>";// style='width:96;height:96' />"; p.innerHTML = html; 其他的大部分图片这两种方案都是没问题可以正常显示的。麻烦帮忙看一下...
来源: Laya_社区 发布时间: 20170709
...h); let scene: Laya.Scene = Laya.Scene.load(this.screen3DPath); Laya.stage.addChildAt(scene, 0); this.InitCamera(scene); return scene; } 微信小游戏报错 Scene: the .lh file root type must be Scene,please use other function to load this file.;at api readFile success callback function Error: Sce...
来源: Laya_社区 发布时间: 20180323
... { //实例UI界面 //var testView:TestView = new TestView(); //Laya.stage.addChild(testView); // //return; Laya.timer.once(3000, this, function():void{ var sprite:Sprite = new Sprite(); sprite.pos(0, 0); var texture:Texture = new Texture(Browser.window.sharedCanvas); texture.bitmap.alwaysChange = t...
来源: Laya_社区 发布时间: 20180525
... sp.loadImage("logo.png"); Laya.stage.addChild(sp); } private function onClick():void { //HTMLCanvas 是 Html Canvas 的代理类,封装了 Canvas 的属性和方法。。请不要直...
来源: Laya_社区 发布时间: 20170424
... MyScene.load(this._sceneURl) as MyScene; this._scene.output(); Laya.stage.addChild(this._scene); var camera:Laya.Camera = this._scene.getChildByName("Main Camera") as Laya.Camera; camera.addComponent(CameraMoveScript); var tiger:Laya.Sprite3D = this._scene.getChildByName("tiger_idle&...
来源: Laya_社区 发布时间: 20180317
...atlas/clanwar_bg.jpg?" + Math.random(); Laya.stage.addChild(image); var index:int = 0; Laya.stage.timerLoop(1, this, function():void{index++;image.alpha = Math.sin(Math.PI*2*(index/24))}) var image:Im...
来源: Laya_社区 发布时间: 20190110
...cene/TestScene.ls") as Laya.Scene; // scene.enableLight = true; Laya.stage.addChild(scene); } } new GameMain();工程文件在附件,运行后报错 Uncaught Error: LoaderManager:unknown file(G:/LayaTest/bin/TestScene/TestScene.ls) extension with: ls. at LoaderManager.__proto._create (laya.c...
来源: Laya_社区 发布时间: 20171227
...自定义材质。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))); //为了更好的表现该自定义shader我们去掉模型旋转,同时给摄影机添加了移动脚本 camera.addComponent(CameraMoveScript); //创建一个...
来源: Laya2.0_文档 发布时间: 20210715
...输入地址运行//main.js import txt from './helloworld.js' Laya.stage.addChild(txt) //helloworld.js var txt = new Laya.Text(); txt.text = "Hello Layabox"; txt.color = "#ffffff"; export default txt 二、发布 安装工具,在ide上使用快捷键【ctrl+` 】打开终端,输入下面指令...
来源: Laya_社区 发布时间: 20171120
....changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(progressBar); //时间间隔循环,每100毫秒改变一次数据 Laya.timer.loop(100, this, changeValue); } /***时间间隔循环回调,更新进度条***/ private function changeValue():void { //最大为1,...
来源: Laya2.0_文档 发布时间: 20210715