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

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

2641. 微信小游戏想使用截图功能是使用canvasToTempFilePath()吗 [ 45%]

...canvasToTempFilePath( this: string, object: _canvasToTempFilePathObject ): void; 这是wx.d.ts里写的 我看文档说用这个获取分享用 再问下 微信中的Canvas在laya中如何获取啊 ? A • 2018-11-29 11:41 @柒汐夜:我看以前文档是 let htmlC: Laya.HTMLCanvas = this.view.dis...

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

2642. 从Unity中编辑并导出摄像机(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 45%]

...monkey.ls",Handler.create(this,onSceneOK)); } private function onSceneOK():void { //添加3D场景 var scene:Scene3D = Laya.loader.getRes("monkey/monkey.ls"); Laya.stage.addChild(scene); //从场景中获取摄像机 var camera:Camera = scene.getChildByName("Main Camera") as Camera; //后续对摄...

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

2643. 在安卓手机上drawToTexture不能正确返回纹理对象,是HTMLCanvas [ 45%]

...public startDrag(dragCom: Laya.Sprite, touchID: number, sourceData?: any): void {let bounds = dragCom.getSelfBounds(); this._agentTexture = Laya.Sprite.drawToTexture(dragCom,Laya.SpriteConst.TEXTURE,bounds.width, bounds.height, -bounds.x + view.x, -bounds.y + view.y); this._agent.graphics.drawTextur...

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

2644. 多点触控的使用(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 45%]

...ipt //重写脚本中的onUpdate方法 override public function onUpdate():void { var touchCount:int = _scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 if (isTwoTouch){ return; } _text.text = "触控点为1"; //获取当...

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

2645. oppo CanvasRenderingContext2D 并没有实现 drawImage;报错; [ 45%]

...oto.loadImageSource=function(source,premultiplyAlpha){ (premultiplyAlpha===void 0)&& (premultiplyAlpha=false); var width=source.width; var height=source.height; this._width=width; this._height=height; this._setWarpMode(/*laya.webgl.WebGLContext.TEXTURE_WRAP_S*/0x2802,this._wrapModeU); this._...

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

2646. Laya.HTMLDivElement解析img标签报错 [ 45%]

Laya.HTMLDivElement解析img标签报错 onConfigLoaded(): void {         //加载IDE指定的场景         // GameConfig.startScene && Laya.Scene.open(GameConfig.startScene);         let div = new Laya.HTMLDivElement();         div.innerHTML="<img src='r...

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

2647. laya支持的发布模式有哪些? [ 45%]

...断点 ================== AS: setName(123); function setName(name:String):void { trace(name); } JS: function setName (name){ if(!__DEBUGTYPE__(name,'String'))debugger;//在此行会自动断点 trace(name); } =================== AS: var asString:String = asObj as String; JS: var asString=__DEBUGAS__...

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

2648. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 45%]

...; [SerializeField] private Transform guard; // Use this for initialization void Start () { pivot.transform.rotation = Quaternion.Euler(0, 0, -20); } // Update is called once per frame void Update () { if (Input.GetKey(KeyCode.A)) { guard.transform.position = new Vector3(guard.transform.position.x + ...

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

2649. laya.d3.graphics.VertexPositionNormalColorTexture0Texture1SkinTangent [ 45%]

...dinate1:Vector2, tangent:Vector3, blendIndex:Vector4, blendWeight:Vector4):voidVertexPositionNormalColorTexture0Texture1SkinTangentProperty DetailblendIndexpropertyblendIndex:Vector4  [read-only] Implementation     public function get blendIndex():Vector4blendWeightproperty blendWeight:Vector...

来源: laya_api 发布时间: 20170929

2650. video在安卓手机上,怎么设置同层播放,还有怎么设置隐藏控制播放按钮 [ 45%]

...     下面是 创建视频的主要代码 private function initVideo():void { // TODO Auto Generated method stub // 创建Video元素 var div:* = Browser.createElement("div"); div.setAttribute("id", "videobox"); Browser.document.body.appendChild(div); // var canvas:* = Browser.getElementById("la...

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