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

大约有 3,517 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0082 秒)

521. 材质-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_示例 发布时间: 20241001

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

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

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

523. 项目发布问题 [ 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

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

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

来源: laya_api 发布时间: 20170929

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

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

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

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

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

528. 使用二进制图片 · 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

529. 如何操作剪贴板 document.execCommand('copy') 返回false [ 77%]

... 在Laya中调用document.execCommand('copy'),IDE所带的模拟器返回true,并且复制成功;在浏览器中运行就返回false,复制失败。后来用原生的JavaScript(不用Laya)直接通过点击事件调用,也是成功的。   查看Web API文档,关于document.execCommand...

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

530. LayaBox AS3编译总结之FlashDevelop篇 [ 77%]

...e;"$(ProjectPath)";iflash=false;chromerun=false;quickcompile=false;outlaya=true chromerun 是否编译后运行项目,默认true为运行项目 quickcompile 是否快速编译项目,默认true为快速编译,如果出现异常设置为false取消快速编译,为重新编译所有文件 outla...

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