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

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

171. ScrollRect设置会引起其他的UI资源无法正在显示 [ 61%]

...super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for(var i:int = 0;i<len;i++){ p = new Image("test/footprint.png"); p.pos(i*PATH_LEN,0); arr.push(...

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

172. 3D中摄像机绕物体旋转该如何实现? [ 61%]

...ne.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position =new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addComponent(ModelViewer); modelViewer.AroundPos = plane.transform.position; */ export defau...

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

173. 官方案例里摄像机绕物体旋转脚本的问题 [ 61%]

...ne.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position =new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addComponent(ModelViewer); modelViewer.AroundPos = plane.transform.position; */ export defau...

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

174. 为什么我获取不到鼠标滚轮的delta值,我查看laya.events.Event 里面没有这个属性 [ 61%]

...mera.transform.position = new Laya.Vector3(0, 0, 5); this.camera.transform.rotate(new Laya.Vector3(0, 0, 0), true, false); Laya.stage.on(Event.MOUSE_WHEEL,this,this.onMouseWheel); } private onMouseWheel(e:Event):void { e. //没有delta 属性 } } } new laya.Interaction_Scale(); cuixueying • 2017-0...

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

175. 引擎 TiledMap 居然不支持图块翻转 [ 61%]

... / 2);                                         tSprite.rotation = tObjectData.rotation;                                         tSprite.x = tSprite.relativeX = Laya.Point.TEMP.x + this._map.viewPortX;                                        ...

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

176. laya.ani.GraphicsAni_API3.0 [ 61%]

... fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale strokeText transform translate create recycle Constructors constructor new GraphicsAni(): GraphicsAni Inherited from Graphics.constructor Defined in laya/display/Graphics.ts:54 Returns GraphicsAni Accessors ...

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

177. 怎么设置模型高度 [ 61%]

...h); scene.addChild(box); box.transform.translate(_position); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; 我看了API MeshSprite3D和B...

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

178. 目标纹理的使用(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 61%]

...nsform.position = new Vector3(-28.8, 8, -60); renderTargetCamera.transform.rotate(new Vector3(0, 180, 0), true, false); //选择渲染目标为纹理 renderTargetCamera.renderTarget = new RenderTexture(512, 512); //渲染顺序 renderTargetCamera.renderingOrder = -1; //清除标记 renderTargetCamer...

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

179. 目标纹理的使用(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 61%]

...nsform.position = new Vector3(-28.8, 8, -60); renderTargetCamera.transform.rotate(new Vector3(0, 180, 0), true, false); //选择渲染目标为纹理 renderTargetCamera.renderTarget = new RenderTexture(512, 512); //渲染顺序 renderTargetCamera.renderingOrder = -1; //清除标记 renderTargetCamer...

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

180. 怎么添加脚本? [ 61%]

...orm.translate(new Vector3(0, 3, 3));             camera.transform.rotate(new Vector3( -30, 0, 0), true, false);             camera.clearColor = null;             camera.clearFlag = BaseCamera.CLEARFLAG_SKY;             //camera.addComponent(CameraMoveScript);报...

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