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

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

621. tiledMap类createMap()创建地图 如何理解这个viewRect视口区 [ 87%]

...gColor = '#0000ff';     Laya.stage.scaleMode = Stage.SCALE_SHOWALL;   var tiledMap;     var viewRect;     var mLastMouseX = 0;     var mLastMouseY = 0;      var mX = 0;     var mY = 0;      (function()     {         createMap();          Laya.stage...

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

622. 协议打包byte出错 [ 87%]

...otoFileName=="+protoFileName+" msgName=="+msgName);             var byte:Byte   = new Byte();             byte.writeByte(10);             var payload:* = {                 name : "hbc",                 career : byte,       ...

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

623. laya.filters.GlowFilter [ 87%]

...ive():Float32ArrayGlowFilterProperty Detail_blurInof1_nativepropertypublic var _blurInof1_native:Float32Array_blurInof2_nativeproperty public var _blurInof2_native:Float32Array_color_nativeproperty public var _color_native:Float32Array_sv_blurInfo1property public var _sv_blurInfo1:Array_sv_blurIn...

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

624. HTMLDivElement中image标签多次赋值报错 [ 87%]

...lement中image标签多次赋值报错 报错信息 代码段(function() { var Stage = Laya.Stage; var HTMLDivElement = Laya.HTMLDivElement; var Browser = Laya.Browser; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight...

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

625. laya.d3.core.material.RenderState [ 87%]

...枚举_关闭深度测试。RenderStateProperty Detailblendpropertypublic var blend:int透明混合。blendConstColorproperty public var blendConstColor:Vector4混合常量颜色。blendEquationproperty public var blendEquation:int混合方程。blendEquationAlphaproperty public var blendEquation...

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

626. 如何获取HTMLDivElement对象的文本值 [ 87%]

...何获取HTMLDivElement对象的文本值 上例子             var div:HTMLDivElement=new HTMLDivElement();             div.innerHTML="<span href='http://ask.layabox.com/'>LayaBox欢迎你的加入!</span>";             var txt:String = "";          ...

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

627. TypeScript 泛形方法如何传TYPE? [ 87%]

...传TYPE? GetComponetInChild(node:laya.display.Node):Laya.Animator { for (var index = 0; index < node._childs.length; index++) { var element:Laya.Animator = node._childs[index].getComponentByType(Laya.Animator); if (element!=null) { return element; }else this.GetComponetInChild(node._childs[index]...

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

628. 多点触控的使用(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 87%]

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

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

629. 多点触控的使用(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 87%]

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

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

630. 列表里的元素可以播放动画吗 [ 87%]

...//当list刷新时接收并更改单元格属性              var hero:Image = cell.getChildByName("hero")as Image;//根据名字查找要更改的单元格              hero.disabled = HostData.array[index].hero;//属性更改              var ani :Ani...

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