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

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

1061. 预制体 · LayaAir3.4 · 引擎文档 · LAYABOX [ 62%]

...Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看看3D预...

来源: Laya3.0_文档 发布时间: 20251105

1062. ColorPicker组件的皮肤制作标准是? [ 62%]

...colorPicket 的颜色改变回调函数。               Laya.stage.addChild(colorPicket);//将此 colorPicket 对象添加到显示列表。           }          private function onChangeColor(colorPicket:ColorPicker):void           {               trace("当前选择...

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

1063. 加载网页图片地址有的不会显示 [ 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

1064. 微信关系链: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

1065. 微信小游戏报错 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

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

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

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

1067. 使用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

1068. 微信小游戏运行导出项目的时候报错: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

1069. 载入场景报错 [ 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

1070. 如何自定义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