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

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

521. Maximum call stack size exceeded [ 77%]

...   GameConfig.physicsDebug = false;     GameConfig.exportSceneToJson = true;       GameConfig.init();       class Main {     constructor() {     //根据IDE设置初始化引擎     if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height);     else Laya.init(GameConfig...

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

522. 材质-BlinnPhong-法线贴图 [ 77%]

...种开发语言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); this.rotation = new Laya.Vector3(0, 0.01, 0); this.normalMapUrl = ["../../res/threeDimen/staticModel/lizardCal/rock_norm.png", "../../res/threeDimen/staticModel/lizardCal/lizard_norm.png", "../../res/threeDimen/staticMod...

来源: Laya_示例 发布时间: 20251209

523. HtmlDivElement文本的居中与不换行冲突问题 [ 77%]

...后我把HtmlDivElement文本的换行属性_html.style.wordWrap设置为true,发现这时候字符居中显示了。但是我这边有需求,不允许换行的,文本超过边界就超了,隐藏掉就好了,所以我这边的需求是文本要居中显示,但是不允许换行,感觉...

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

524. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 77%]

...转。 2.2.7 可见性Visialble 这是一个布尔型的值。勾选代表true,表示可见。不勾选代表false,表示不可见,此时如果精灵加载了图片,那么就不会显示到画布上了。 2.2.8 透明度Alpha 如果精灵加载了图片,透明度可以设置图片的透明...

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

525. 项目发布问题 [ 77%]

...s',   '/Users/xxx/Desktop/chickenGame/chicken_game/laya/.laya',   'clear=true',   'releasemode=normal',   'exportUICode=true',   'exportRes=true' ] type: Darwin appPath: /usr/local/lib/node_modules/layaair-cmd/ProjectExportTools/ openProject: /Users/xxx/Desktop/chickenGame/chicken_game/laya/.la...

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

526. laya.d3.core.MeshTerrainSprite3D [ 77%]

...取高度图属性。 MeshTerrainSprite3D destroy(destroyChild:Boolean = true):void[override] 销毁此对象。destroy对象默认会把自己从父节点移除,并且清理自身引用关系,等待js自动垃圾回收机制回收。destroy后不能再使用。 destroy时会移除自身的事...

来源: laya_api 发布时间: 20170929

527. laya.d3.core.Sprite3D_API3.0 [ 77%]

...s:310 inheritdoc override Parameters Default value destroyChild: boolean = true Returns void destroyChildren destroyChildren(): void Inherited from Node.destroyChildren Defined in laya/display/Node.ts:211 销毁所有子对象,不销毁自己本身。 Returns void event event(type: string, data?: ...

来源: Laya3.0_api 发布时间: 20231115

528. 在Laya中使用Matter.js的最简示例 (JS) [ 77%]

... 50, 80, 80); var ground = Bodies.rectangle(400, 500, 810, 60, { isStatic: true }); // add all of the bodies to the world World.add(engine.world, [boxA, boxB, ground]); // run the engine Engine.run(engine); // run the renderer Render.run(render);显示效果如下 但是这还没有用Laya来渲染...

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

529. laya.d3的SimpleSingletonList 疑似逻辑问题 [ 77%]

...动画控制器里面在某一帧会把其中一个mesh的active设置成true/false,并且动画是激活时自动播放的。 把该粒子添加到舞台加载播放,某一个条件下设置粒子active=true时,因为动画播放器是自动播放,在激活的时候会update,这时候如...

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

530. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 77%]

...: var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { wi...

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