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

大约有 3,603 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0106 秒)

491. 自己写了个label继承官方的label,出现了问题,求指导~ [ 78%]

...r textFormat:TextFormat = new TextFormat("Microsoft YaHei", 50, "#FF00FF", true, true, true); label.textFormat = textFormat; label.wordWrap = true; label.lWidth = 100; label.lHeight = 100; label.txt = "Hello"; label.lx = 100; label.ly = 100; Laya.stage.addChild(label); //----------------------------...

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

492. 我想把flex项目转为laya ts项目,转换过程 mx.containers.Canvas报错 [ 78%]

...mx="http://www.adobe.com/2006/mxml" width="144" height="590" mouseEnabled="true">                 <mx:Canvas width="144" height="590" x="0" y="0" horizontalScrollPolicy="off" verticalScrollPolicy="off">                     <!-- left border -->         ...

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

493. List滚动条问题 [ 78%]

...ont.family; this._goldLabel.bold = (parseInt(font.bold | 0) == 0 ? false : true); this._goldLabel.fontSize = parseInt(font.size); this._goldLabel.underline = (parseInt(font.underline | 0) == 0 ? false : true); this._goldLabel.align = "center"; this._goldLabel.valign = "middle"; this._goldLabel.pos(0...

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

494. laya.physics.RigidBody [ 78%]

...对象 RigidBody  bullet : Boolean是否高速移动的物体,设置为true,可以防止高速穿透RigidBody  category : int = 1[只读]碰撞类别,使用2的幂次方值指定,有32种不同的碰撞类别可用RigidBody destroyed : Boolean[read-only] 获取是否已经销毁 。 Com...

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

495. 关于微信小游戏关系链的问题 [ 78%]

...(Browser.window.sharedCanvas);       rankTexture.bitmap.alwaysChange=true; console.log(rankTexture)       LayaUISample.scoreview.graphics.drawTexture(rankTexture,5,78,rankTexture.width,rankTexture.height);     }); var rankTexture=new Texture(Browser.window.sharedCanvas); 这里报错...

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

496. 材质-BlinnPhong-反射贴图 [ 78%]

...种开发语言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); this.rotation = new Laya.Vector3(0, 0.01, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera ...

来源: Laya_示例 发布时间: 20251209

497. LayaRender渲染含有多个part的Body存在Bug [ 78%]

...(text, 0, 0, w, h); partA = Matter.Bodies.rectangle(x, y, w, h, { isStatic:true, layaSprite:sp, });  sp = new Laya.Sprite(); w = size/5, h=size; sp.pivot(w/2, h/2); sp.graphics.fillTexture(text, 0, 0, w, h); partB = Matter.Bodies.rectangle(x, y, w, h, { isStatic:true, layaSprite:sp, });  var comp ...

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

498. 关于Sprite回收 [ 77%]

...           item.removeSelf();                 item.visible = true;                 Pool.recover("item", item);                 item.graphics.clear();             }    item的父容器是通过回收池获取的,父容器带有原来的item,现在希望删掉...

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

499. laya.d3.core.pixelLine.PixelLineSprite3D [ 77%]

...包含指定的 Node 节点对象 。 Node destroy(destroyChild:Boolean = true):void[override] 销毁此对象。destroy对象默认会把自己从父节点移除,并且清理自身引用关系,等待js自动垃圾回收机制回收。destroy后不能再使用。 destroy时会移除自身的事...

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

500. Unity插件与LAYAAIR加载的天空盒子BUG与修改方法 [ 77%]

...下修改 "front":"../sky.png",     "params":{         "mipmap":true,         "filterMode":1,         "wrapModeU":0,         "wrapModeV":0,         "anisoLevel":1,         "format":0     },     "back":"../sky 1.png",     "params":{         "mipma...

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