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

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

331. 路径显示会添加DrawCall,每增加一条路径都会添加,有什么办法降DrawCall [ 81%]

... a.x) / Math.PI * 180; _path2.pos(a.x,a.y); this.addChild(_path2); var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; SetPathArr(arr,_path); SetPathArr(arr2,_path2); //注释下面这行就正常了 _path.scrollRect = new Rectangle(0,0,(len-3)*PATH_LEN-30,58); _path2.scrollRect = new Rectangle(0,0,(...

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

332. laya.ui.TipManager [ 81%]

...轴坐标信息。 Sprite name : String节点名称。Node numChildren : int[read-only] 子对象数量。 Node  offsetX : int = 10[static] TipManager  offsetY : int = 15[static] TipManager optimizeScrollRect : Boolean 指定是否对使用了 scrollRect 的显示对象进行优化处理。...

来源: laya_api 发布时间: 20170929

333. 多种碰撞器形状(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 81%]

...了。 ![](img/2.png)(图2) ```typescript //随机生成坐标值 var sX:int = Math.random() * 0.75 + 0.25; var sY:int = Math.random() * 0.75 + 0.25; var sZ:int = Math.random() * 0.75 + 0.25; //创建盒型MeshSprite3D var box:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(sX...

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

334. laya.d3.math.Vector2 [ 81%]

...Elements:Float32Array = null):voidVector2  fromArray(array:Array, offset:int = 0):void 从Array数组拷贝值。 Vector2  normalize(s:Vector2, out:Vector2):void[static] 归一化二维向量。 Vector2  rewriteNumProperty(proto:*, name:String, index:int):void[static] Vector2  scalarLength(a...

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

335. list里面可以加入多个view吗? [ 81%]

... list.selectHandler=new Handler(this,onSelect); var data:Array=; for(var i:int=0;i<100;i++) { data.push({src:"comp/bg.png",txt:"索引:"+i}); } list.array=data; } private function onSelect(index:int):void { trace("你点击的当前索引是:"+index); } private function onRender(cell:Item,ind...

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

336. laya.ui.AdvImage [ 81%]

...轴坐标信息。 Sprite name : String节点名称。Node numChildren : int[read-only] 子对象数量。 Node parent : Node[read-only] 父节点。Node pivotX : NumberX轴 轴心点的位置,单位为像素,默认为0。轴心点会影响对象位置,缩放中心,旋转中心。Sprite...

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

337. laya.ui.LayoutBox [ 81%]

...轴坐标信息。 Sprite name : String节点名称。Node numChildren : int[read-only] 子对象数量。 Node optimizeScrollRect : Boolean 指定是否对使用了 scrollRect 的显示对象进行优化处理。默认为false(不优化)。 当值为ture时:将对此对象使用了scrollRect ...

来源: laya_api 发布时间: 20170929

338. laya.events.KeyBoardManager [ 81%]

...为trueKeyBoardManagerPublic Methods  MethodDefined By  hasKeyDown(key:int):Boolean[static] 返回指定键是否被按下。 KeyBoardManagerProperty Detailenabledpropertypublic static var enabled:Boolean = true是否开启键盘事件,默认为trueMethod DetailhasKeyDown()method public static ...

来源: laya_api 发布时间: 20170929

339. laya.events.KeyBoardManager [ 81%]

...为trueKeyBoardManagerPublic Methods  MethodDefined By  hasKeyDown(key:int):Boolean[static] 返回指定键是否被按下。 KeyBoardManagerProperty Detailenabledpropertypublic static var enabled:Boolean = true是否开启键盘事件,默认为trueMethod DetailhasKeyDown()method public static ...

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

340. UI-Input [ 81%]

...er; import laya.webgl.WebGL; public class UI_Input { private const SPACING:int = 100; private const INPUT_WIDTH:int = 300; private const INPUT_HEIGHT:int = 50; private const Y_OFFSET:int = 50; private var skins:Array; public function UI_Input() { // 不支持WebGL时自动切换至Canvas Laya.init(8...

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