大约有 374 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0137 秒)
Laya_社区(193) Laya2.0_文档(65) laya_api(38) Laya2.0_api(37) Laya3.0_文档(28) Laya3.0_api(11) Laya2.0_示例(1) Laya_示例(1)
...在此对象内。 Sprite init(templet:Templet, aniMode:int = 0):void 初始化动画 Skeleton isMouseEvent(type:String):Boolean 检测指定事件类型是否是鼠标事件。 EventDispatcher load(path:String, complete:Handler = null, aniMode:int = 0):void 通过加载直接创建动画 Ske...
来源: laya_api 发布时间: 20170929
...在此对象内。 Sprite init(templet:Templet, aniMode:int = 0):void 初始化动画 Skeleton isMouseEvent(type:String):Boolean 检测指定事件类型是否是鼠标事件。 EventDispatcher load(path:String, complete:Handler = null, aniMode:int = 0):void 通过加载直接创建动画 Ske...
来源: Laya2.0_api 发布时间: 20190513
...d 创建并添加控件子节点。 UIComponent initialize():void 控件初始化。 UIComponent measureHeight():Number 显示对象的实际显示区域高度(以像素为单位)。 UIComponent measureWidth():Number 显示对象的实际显示区域宽度(以像素为单位)。 UIC...
来源: Laya2.0_api 发布时间: 20190513
...oid 创建并添加控件子节点。 Component initialize():void 控件初始化。 Component onCompResize():void 父容器的 Event.RESIZE 事件侦听处理函数。 Component preinitialize():void 预初始化。 Component resetLayoutX():void 重置对象的 X 轴(水平方向)布...
来源: laya_api 发布时间: 20170929
... Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 init();//初始化 } private function init():void { var animation:Animation = new Animation();//创建一个 Animation 类的实例对象 animation 。 animation.loadAtlas("resource/ani/fighter.json");//加载图集并播放 animation....
来源: Laya3.0_api 发布时间: 20231115
...0); 即可调出性能统计面板。 示例Demo.ts编写代码如下: //初始化舞台 Laya.init(1136, 640); //调用性能统计面板方法,(0,0)为面板位置坐标 Laya.Stat.show(0,0); Tips:要注意大小写。 2、FPS相关的介绍 2.1 FPS概述 FPS是每秒传输帧数(Frames Per Seco...
来源: Laya3.0_文档 发布时间: 20251010
...lay.Sprite); //定义RunGame的prototype var _proto = RunGame.prototype; //初始化 _proto.init = function(){ console.log('RunGame Init'); //背景 this.bg = new Background(); this.addChild(this.bg); //地板 this.mapFloor = new MapFloor(); this.addChild(this.mapFloor); //玩家 this.player = new P...
来源: Laya_社区 发布时间: 20160801
...):Boolean 检测某个点是否在此对象内。 Sprite initItems():void 初始化项对象们。 UIGroup isMouseEvent(type:String):Boolean 检测指定事件类型是否是鼠标事件。 EventDispatcher loadImage(url:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, comp...
来源: laya_api 发布时间: 20170929
...):Boolean 检测某个点是否在此对象内。 Sprite initItems():void 初始化项对象们。 UIGroup isMouseEvent(type:String):Boolean 检测指定事件类型是否是鼠标事件。 EventDispatcher loadImage(url:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, comp...
来源: laya_api 发布时间: 20170929
...om "./ui/layaMaxUI"; class Main { constructor(){ //初始化引擎 Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; this.upVector3 = new Laya.Vector...
来源: Laya_社区 发布时间: 20190531