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

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

431. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 41%]

...:Laya.Texture2D; private box; constructor(){ Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; var camera = scene.addChild(new Laya.Camera(0, 0.1, 0))...

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

432. VR的demo有没有加载3D场景的啊,实在不知怎么加 [ 40%]

...不到, 附件有场景模型文件 Laya3D.init(0, 0,true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_HORIZONTAL; Laya.Stat.show(); //var scene = Laya.stage.addChild(new Laya.Scene.load("cj02/LastHopeScene.ls")); var scene = Laya.stage.addChild(new Lay...

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

433. 如何实现3d遮罩效果? [ 40%]

...blic function D3Base_TargetTexture() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); loadUI(); var scene:Scene = Laya.stage.addChild(new Scene()) as Scene; var camera1:Camera = new Camera(0, 0.1, 100); scene.addChild(camera1...

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

434. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 40%]

... Laya.stage.bgColor = '#999999'; //设置适配模式     Laya.stage.scaleMode = "exactfit";     // 无加载失败重试     Laya.loader.retryNum = 0; //加载的数据信息 https://layaair.ldc.layabox.co ... oader var urls = [ {url:"res/castlebeyond.jpg",type:Loader.IMAGE},      ]...

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

435. 物理引擎显示旋转问题 [ 40%]

...    Laya.stage.alignH = Stage.ALIGN_CENTER;         Laya.stage.scaleMode = "fixedwidth";         Laya.stage.bgColor = '#000';         setup();     })();     function setup() {         initMatter();         initWorld();         Laya.stage.on...

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

436. 怎么实现同一个工程内分包? [ 40%]

...display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; import login.LoginView; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Ev...

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

437. Laya中的宏编译要怎么用啊 [ 39%]

...display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { remov...

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

438. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 38%]

...it(); //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //开启统计信息 // Laya.Stat.show(); //添加3D场景 this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; //添加照相机...

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

439. [BUG]刚体约束问题,移动后约束混乱! [ 38%]

...uctor() {     super();     Laya3D.init(0, 0);     Laya.stage.scaleMode = Laya.Stage.SCALE_FULL;     Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;     Laya.Stat.show();     this.newScene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D;        //初...

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

440. IDE1.7.19.1beta打包apk后后,播放spine动画出现图片缺失 [ 37%]

...请查看附件): Main.tsLaya.init(750, 1334, Laya.WebGL); Laya.stage.scaleMode = "showall"; Laya.stage.screenMode = "none"; Laya.stage.alignH = "center"; Laya.stage.alignV = "middle"; const spine: Laya.Skeleton = new Laya.Skeleton(); spine.pos(100, 400); spine.load('res/spine/princess1.sk', new...

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