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

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

2031. 寻路系统(ActionScript-3D基础(AS3)-LayaAir3D之高级应用) [ 63%]

...rray = createGridFromAStarMap(aStarMap); //使用astar组织数据 graph = new Browser.window.Graph(aStarArr); opts = {}; opts.closest = true; opts.heuristic = Browser.window.astar.heuristics.diagonal; ...... } ``` > 通过遮挡图生成 ```typescript /** * 通过图片数据计算得到AStar网格...

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

2032. ComboBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 63%]

...00); cb.autoSize = false; } function createComboBox(skin) { var comboBox = new ComboBox(skin, "item0,item1,item2,item3,item4,item5"); comboBox.labelSize = 30; comboBox.itemSize = 25; comboBox.selectHandler = new Handler(this, onSelect, [comboBox]); Laya.stage.addChild(comboBox); return comboBox; } f...

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

2033. 除了---可以看到执行完layadcc后,在指定目录(现在是当前路径 . )下面会生成一个update目录。然后把这个update目录拷贝到本地或者远程服务器的相同目录即可。更新的资源要怎么办 [ 63%]

...折叠 要回复问题请先登录 发起人 king 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 Animator 如何获取当前所有动画名称呢?或者所有的AnimationClip呢? laya2的Scene默认是文件模式,不会生成...

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

2034. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 63%]

...;   } });  })); }  genSpine(url, handler: Laya.Handler) { var templet = new Laya.SpineTemplet(Laya.SpineVersion.v4_0); templet.on(Laya.Event.COMPLETE, handler.caller, handler.method); templet.on(Laya.Event.ERROR, this, this.printError); templet.loadAni(url); }  printError(e) { console.error(e); ...

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

2035. JSON文件加载成功后,怎么解析成Object对象 [ 63%]

...r txt:Text = null; public function TestMain() { Laya.init(800, 800); txt = new Text(); txt.mouseEnabled = false; txt.overflow = Text.SCROLL; txt.size(Laya.stage.width, Laya.stage.height); txt.pos(10, 10); txt.fontSize = 30; txt.wordWrap = true; txt.color = "#FF9632"; Laya.stage.addChild(txt); var te...

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

2036. laya.d3.math.Viewport_API3.0 [ 63%]

...eTo project set unprojectFromMat unprojectFromWVP Constructors constructor new Viewport(x?: number, y?: number, width?: number, height?: number): Viewport Defined in laya/d3/math/Viewport.ts:23 创建一个 Viewport 实例。 Parameters Optional x: number x坐标。 Optional y: number y坐标。 Opt...

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

2037. 请教下, 自己写了个渐变色shader, 但是效果始终不对。麻烦大神们看看代码哪里有问题 [ 63%]

...ndColor, 1);\n" + "};"; this._setColor(Laya.VertexElementUsage.STARTCOLOR0,new Laya.Vector4(1,0,0,1)); this._setColor(Laya.VertexElementUsage.ENDCOLOR0,new Laya.Vector4(0,0,1,1)); var customShader = Laya.Shader3D.nameKey.add("GradientShader"); Laya.ShaderCompile3D.add(customShader, vs, ps, attribute...

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

2038. laya.d3.core.particleshuriken.module.FrameOverTime_API3.0 [ 63%]

...eateByRandomTwoConstant createByRandomTwoOverTime Constructors constructor new FrameOverTime(): FrameOverTime Defined in laya/d3/core/particleShuriKen/module/FrameOverTime.ts:120 创建一个 FrameOverTime,不允许new,请使用静态创建函数。 实例。 Returns FrameOverTime Accessors consta...

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

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

...; //根据移动的距离进行旋转 (owner as Sprite3D).transform.rotate(new Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ _text.text = "触控点为2"; isTwoTouch = true; //获取两个触碰点 var touch:Touch = _scene.input.getTouch(0); var touch2:Touc...

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

2040. oppo CanvasRenderingContext2D 并没有实现 drawImage;报错; [ 63%]

...th *height *4); } if (this._canRead){ if (Render.isConchApp){ this._pixels=new Uint8Array(source._nativeObj.getImageData(0,0,width,height)); }else { Browser.canvas.size(width,height); Browser.canvas.clear(); Browser.context.drawImage(source,0,0,width,height); this._pixels=new Uint8Array(Browser.cont...

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