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

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

201. Laya.BlinnPhongMaterial.RENDERMODE_TRANSPARENT设置透明度不行了? [ 57%]

...eMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D;         box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false);         var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial();         Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: ...

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

202. laya.display.Sprite [ 57%]

...ers : Array滤镜集合。可以设置多个滤镜组合。Sprite  globalRotation : Number[read-only] 获得相对于stage的全局旋转值(会叠加父亲节点的旋转值)。 Sprite  globalScaleX : Number[read-only] 获得相对于stage的全局X轴缩放值(会叠加父亲节点的缩...

来源: Laya2.0_api 发布时间: 20190513

203. 关于removechild、destory、clear的问题 [ 57%]

...图或者矢量图,还可以结合save,restore,transform,scale,rotate,translate,alpha等指令对绘图效果进行变化。Graphics以命令流方式存储,可以通过cmds属性访问所有命令流。Graphics是比Sprite更轻量级的对象,合理使用能提高应用性能(比...

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

204. laya.html.dom.HTMLIframeElement_API3.0 [ 57%]

...displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea href innerHTML is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrollRect skewX skewY stage staticCache s...

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

205. 如何让3D物体在xy平面上做曲线运动时其z轴旋转角度也跟着变化? [ 56%]

...hItem.angle pathItem.angle = angle; //物体旋转 pathItem.item.transform.rotate(new Laya.Vector3(0,0,dis), false, true); //物体平移 pathItem.item.transform.position = new Laya.Vector3(newPos.x, newPos.y, pathItem.item.transform.position.z); 2019-05-24 添加评论 免费帖 --> 分享 微博 Q...

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

206. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 56%]

...slate(new Laya.Vector3(0, 2, 5));         this.camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false);          this.scene.addChild(this.camera);         Laya.loader.create("res/scene_Effect/Conventional/Effect_zhujue_attack.lh", Laya.Handler.create(this,...

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

207. laya.physics.PhysicsDebugDraw_API3.0 [ 56%]

...displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrollRect skewX skewY stage staticCache texture timer tr...

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

208. Laya2.7.1 射线提示rayCast未定义 [ 56%]

...ra.transform.translate(new Laya.Vector3(0, 0.7, 5)); this.camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); } onEnable() { Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this._onStageDown); } _onStageDown() { //创建一个点 var point = new Laya.Vector2(); var outHitResult = new Laya.H...

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

209. 新手的伤,ReferenceError: CameraMoveScript is not defined [ 56%]

...ion = new Laya.Vector3(0, 5, 23); //旋转摄像机角度 camera.transform.rotate(new Laya.Vector3(-17, 0, 0), true, false); //设置摄像机视野范围(角度) camera.fieldOfView = 35; //设置背景颜色 camera.clearColor = new Laya.Vector4(0, 0, 0.6, 1); //加入摄像机移动控制脚本...

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

210. Uncaught TypeError: Cannot read property 'props' of undefined [ 56%]

...tion=new Laya.Vector3(-8, 4, 15); //旋转摄像机角度 camera.transform.rotate(new Laya.Vector3( -8, -25, 0), true, false); })) } return Main; } ()); Main();   laya2.0的3d尝试,新人,看不懂这是为啥,错误如下: laya.d3.js:15290 Uncaught TypeError: Cannot read property 'props' ...

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