大约有 1,587 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0064 秒)
Laya_社区(1114) Laya2.0_文档(231) Laya_示例(108) Laya2.0_示例(69) Laya3.0_文档(52) Laya3.0_api(11) Laya2.0_api(2)
...,效果如(图1)。 ```typescript //加载场景 Laya.Scene3D.load("res/threeDimen/scene/materialScene/Conventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); })...
来源: Laya2.0_文档 发布时间: 20210715
...3 赞同来自: 你这个deom怎么运行报错呢? [Game] Error loading res://a7daa100-5ced-4cd1-820d-82ed9838d4cf: Error: unknown runtime '7bad1742-6eed-4d8d-81c0-501dc5bf03d6',TypeError: cls is not a constructor [Game] Uncaught (in promise) TypeError: Cannot read properties of undefined (...
来源: Laya_社区 发布时间: 20230316
...a.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { material.albedoTexture = tex; })); box.meshRenderer.material = material; ``` #####
来源: Laya2.0_文档 发布时间: 20210714
...,效果如(图1)。 ```typescript //加载场景 Laya.Scene3D.load("res/threeDimen/scene/materialScene/Conventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera") as Laya.Camera; camera.addComponent(Camera...
来源: Laya2.0_文档 发布时间: 20210715
...,比如:<p>abc</p> * img:图片标签,比如:<img src='res/boy.png'></img> * br:换行标签,比如:<div>abc<br/>def</div> * style:样式标签,比如:<div style='width:130px;height:50px;color:#ff0000'>abc</div> * link:外链样式标签...
来源: Laya3.0_文档 发布时间: 20230303
...hadowPSSMCount = 3; directionLight.shadowPCFType = 1; directionLight.shadowResolution = 2048; // }); addFirstBox() addTestBox(); addMoveBox(); addTest2Box(); } function addTest2Box() { var box = scene.addChild(new myCube(0.1, 0.1, 11.5, colorCalc(), 0, 1)); console.log(box); } function addTestBox() ...
来源: Laya_社区 发布时间: 20180402
... new GameManager(); // Laya.stage.addChild(gameManager); Laya.loader.load("res/parts/lizi2.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); } var i = 0; function onAssetsLoaded(settings) { var sp = new Particle2D(settings); sp.play(); sp.emitter.start(); sp.x = 100; sp.y = 100; sp.na...
来源: Laya_社区 发布时间: 20170103
...最新的了。 LM20081991 • 2018-01-12 11:44 图2 的加载路径是:res/Laya1/effect1/Laya1/TestScene.lh 刚剪切图片时弄错了。 整个流程就是这样的。 但特效怎么都播放不出来。
来源: Laya_社区 发布时间: 20180112
...出现 “调试适配器已意外中止”,大概有什么问题导致 res.jpg 这个问题是否会在导出的应用上出现 问题可能导致的原因有哪些(目前内存最高值应该在150M左右) 附件 : --> 2018-07-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20180716
macOS系统运行layaair-cmd resourceVersion报错 环境:macOS 10.13.4 版本:layaair-cmd resourceVersion 2.2.5 运行layaair-cmd resourceVersion -i ./src/res -o ./src -n 1000 报错,错误如下: internal/child_process.js:323 throw errnoException(err, 'spawn'); ^ ...
来源: Laya_社区 发布时间: 20180523