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

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

61. 材质-PBRStandard材质 [ 70%]

...aterialScene/Showcase.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyBox = new Laya.SkyBox(); camera.sky = skyBox; skyBox.textureCube ...

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

62. 多光源渲染(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 70%]

...scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199060699333, 61...

来源: Laya2.0_文档 发布时间: 20210715

63. 多光源渲染(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 70%]

...scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199060699333, 61...

来源: Laya2.0_文档 发布时间: 20210715

64. [2.0beta5]引入场景报错 [ 70%]

...Space/LayaTest2_5/LayaTest2_5/bin/libs/laya.physics3D.js:305:118)     at Function.Laya3D.init (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/libs/laya.d3.js:14694:4)     at new Test (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/js/bundle.js:14:16) ...

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

65. 动画-旧版骨骼动画 [ 70%]

...el/Zombie/old/Zombie.lh")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, function () { zombie.transform.rotation = new Laya.Quaternion(-0.7071068, 0, 0, -0.7071068); zombie.transform.position = new Laya.Vector3(0.3, 0, 0); addSkinComponent(zombie); loadUI(); }); var skinAniUrl = [ "../../res/three...

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

66. Mesh网格-网格加载 [ 69%]

... import common.Tool; /** * ... * @author */ public class MeshLoad { public function MeshLoad() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); var scene:Scene = Laya.stage.addChild(new Scene()) as Scene; var camera:Camera = ...

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

67. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 69%]

...nds Image { //缩放时间100毫秒 public var scaleTime:int = 100; public function ImageRunTime() { //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(Event.MOUSE_DOWN,this,scaleSmall); //添加鼠标抬起事件侦听...

来源: Laya2.0_文档 发布时间: 20210714

68. 射线检测-放置物体 [ 69%]

...; var point = new Laya.Vector2(); var _outHitInfo = new Laya.RaycastHit(); function checkHit() { //从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.mouseX; point.elements[1] = Laya.MouseManager.instance.mouseY; camera.viewportPointToRay(point, ray); //射线检测获取所...

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

69. 使用插件导出模型后,使用js加载ls文件,报错Laya.Scene.load is not a function [ 68%]

...导出模型后,使用js加载ls文件,报错Laya.Scene.load is not a function 我使用插件导出模型后,用官网的例子加载模型,报错Laya.Scene.load is not a function。 加载代码部分如下: Laya3D.init(1000, 800); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage...

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

70. 微信小游戏wxmin图片加载有点问题 [ 68%]

微信小游戏wxmin图片加载有点问题 MiniFileMgr.copyFile=function(tempFilePath,readyUrl,callBack){ var temp=tempFilePath.split("/"); var tempFileName=temp[temp.length-1]; var fileurlkey=readyUrl.split("?")[0]; var fileObj=null var fileObj=MiniFileMgr.getFileInfo(readyUrl); // 这行会导...

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