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

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

271. UI-Label [ 86%]

...bgColor = "#232628"; this.setup(); } setup() { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF").pos(290, 100); this.createLabel("#FFFFFF", "#00FFFF").pos(30, 150)...

来源: Laya2.0_示例 发布时间: 20251209

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

...* ... * @author OttoChen */ public class TestMain { private var 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 =...

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

273. laya.map.TiledMap [ 86%]

...dMap  changeViewPortBySize(width:Number, height:Number, rect:Rectangle = null):Rectangle 在锚点的基础上计算,通过宽和高,重新计算视口 TiledMap  createMap(mapName:String, viewRect:Rectangle, completeHandler:Handler, viewRectPadding:Rectangle = null, gridSize:Point = null, en...

来源: laya_api 发布时间: 20170929

274. laya.map.TiledMap [ 86%]

...dMap  changeViewPortBySize(width:Number, height:Number, rect:Rectangle = null):Rectangle 在锚点的基础上计算,通过宽和高,重新计算视口 TiledMap  createMap(mapName:String, viewRect:Rectangle, completeHandler:Handler, viewRectPadding:Rectangle = null, gridSize:Point = null, en...

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

275. laya.ui.FontClip [ 86%]

... Show Inherited Public Methods MethodDefined By  FontClip(skin:String = null, sheet:String = null) FontClip addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 No...

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

276. laya.d3.core.light.PointLight [ 86%]

...有子对象,不销毁自己本身。 Node event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher frameLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时重复执行某函数(基于帧率)。功能同Laya.timer.frameLoop()。 ...

来源: laya_api 发布时间: 20170929

277. laya.d3.core.light.DirectionLight [ 86%]

...有子对象,不销毁自己本身。 Node event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher frameLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时重复执行某函数(基于帧率)。功能同Laya.timer.frameLoop()。 ...

来源: laya_api 发布时间: 20170929

278. Canvas模式下不报错,WebGL模式下运行时报错 [ 86%]

...        var ctx=this.ctx;                 if (args[4] !=null){                     ctx.fillStyle=args[4];                     ctx.fillRect(x+args[0],y+args[1],args[2],args[3],null);                 }                 if (args[5] ...

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

279. 怎么清理掉 Sprite3D 相关的缓存资源, 资源destroy后内存还下降、。 [ 86%]

...oy(destroyChild:Boolean = true):void {             if(effect3D != null){                 effect3D.destroy();                 effect3D = null;             }             super.destroy(true);             Laya.loader.clearRes(this._path);    ...

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

280. laya.d3.core.GeometryFilter [ 86%]

...个 GeometryFilter 实例。 GeometryFilter event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 EventDispatcher isMouseEvent(type:String):Boolean 检测指定...

来源: laya_api 发布时间: 20170929