大约有 70 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0083 秒)
...设置。此模块为固有模块,不可禁用。该模块定义了粒子初始化时的持续时间、循环方式、发射速度、大小等一些列基本的参数。 (图3.1.1-1) Duration:粒子系统不断发射粒子的持续时间,或者说一个周期时间内可以发射多次粒...
来源: Laya3.0_文档 发布时间: 20250104
...eMain.ts** ```typescript // 程序入口 class GameMain{ constructor() { //初始化引擎 Laya.init(1334,750,Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,this....
来源: Laya2.0_文档 发布时间: 20210715
...`` 完整的示例代码如下: **入口类GameMain.js** ```javascript //初始化引擎 Laya.init(600, 400); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas", Laya.Handler.create(this, onLoaded)); fu...
来源: Laya2.0_文档 发布时间: 20210715
...tree(width:int, height:int, depth:int, center:Vector3, level:int = 6):void 初始化八叉树。 Scene isMouseEvent(type:String):Boolean 检测指定事件类型是否是鼠标事件。 EventDispatcher load(url:String):Scene[static] 加载场景,注意:不缓存。 Scene loadImage(url:String, 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
...BuildTask的定义为: export interface IBuildPlugin { /** * 构建任务初始化时。可以在这个事件里修改config和platformConfig等配置。 * @param task */ onSetup?(task: IBuildTask): Promise<void>; /** * 构建任务开始。可以在这个事件里在初始化目标目录的...
来源: Laya3.0_文档 发布时间: 20251010
... onVBarChanged(e:Event):voidTextArea preinitialize():void[override] 预初始化。 TextInputEvents Hide Inherited Events Show Inherited Events Event Summary Defined By added添加到父对象后调度。Node blur当失去输入焦点后调度。TextInput change文本内容发生改变后调...
来源: Laya2.0_api 发布时间: 20190513
... onVBarChanged(e:Event):voidTextArea preinitialize():void[override] 预初始化。 TextInput resetLayoutX():void 重置对象的 X 轴(水平方向)布局。 Component resetLayoutY():void 重置对象的 Y 轴(垂直方向)布局。 ComponentEvents Hide Inherited Events Show Inherited...
来源: laya_api 发布时间: 20170929
...ebgl.WebGL; public class TimeLineDemo { public function TimeLineDemo() { //初始化舞台 Laya.init(1334,750, WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoad回调方法 Laya.loader.load("res/atlas/ui.atlas", Handler.create(this, onLoaded)); } ...
来源: Laya2.0_文档 发布时间: 20210715
...ialog。 function Dialog_Instance() { Dialog_Instance.__super.call(this);//初始化父类 var bg = new laya.ui.Image("resource/ui/bg.png");//新建一个 Image 类的实例 bg 。 bg.sizeGrid = "10,40,10,5";//设置 bg 的网格信息。 bg.width = 150;//设置 bg 的宽度。 bg.height = 250;//设...
来源: Laya3.0_api 发布时间: 20231115