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

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

1061. 加载网页图片地址有的不会显示 [ 62%]

...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

1062. 微信小游戏报错 the .lh file root type must be Scene [ 62%]

...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

1063. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 62%]

... { //实例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

1064. 分享:截屏! [ 62%]

...          sp.loadImage("logo.png");             Laya.stage.addChild(sp);         }                  private function onClick():void         {             //HTMLCanvas 是 Html Canvas 的代理类,封装了 Canvas 的属性和方法。。请不要直...

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

1065. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 62%]

... 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

1066. 使用blendMode=add模式时,某些手机上无法正常显示,出现黑底 [ 62%]

...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

1067. 载入场景报错 [ 62%]

...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

1068. 如何自定义Shader(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 62%]

...自定义材质。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))); //为了更好的表现该自定义shader我们去掉模型旋转,同时给摄影机添加了移动脚本 camera.addComponent(CameraMoveScript); //创建一个...

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

1069. 使用typescript开发项目,解决文件引用顺序问题 [ 62%]

...输入地址运行//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

1070. ProgressBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 61%]

....changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(progressBar); //时间间隔循环,每100毫秒改变一次数据 Laya.timer.loop(100, this, changeValue); } /***时间间隔循环回调,更新进度条***/ private function changeValue():void { //最大为1,...

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