大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0069 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...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
...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
...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
...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
...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
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
...断点 ================== 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
...; [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
...dinate1:Vector2, tangent:Vector3, blendIndex:Vector4, blendWeight:Vector4):voidVertexPositionNormalColorTexture0Texture1SkinTangentProperty DetailblendIndexpropertyblendIndex:Vector4 [read-only] Implementation public function get blendIndex():Vector4blendWeightproperty blendWeight:Vector...
来源: laya_api 发布时间: 20170929
... 下面是 创建视频的主要代码 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