大约有 4,034 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0081 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
... __proto._activeHierarchy=function(activeChangeScripts){ this._setBit(/*laya.Const.ACTIVE_INHIERARCHY*/0x02,true); if (this._components){ for (var i=0,n=this._components.length;i < n;i++){ var comp=this._comp...
来源: Laya_社区 发布时间: 20190730
...为Laya.Scene3D ,不能得到继承类BattleScene的实例 代码如下 this.resArray= [ { url : "LayaScene_CompleteMainScene_test/Conventional/CompleteMainScene_test.ls", clas:BattleScene} ]; //预加载 Laya.loader.create ( this.resArray, Laya.Handler.create(this,this.onPreLoadComplete), Laya...
来源: Laya_社区 发布时间: 20190323
...40x240的动画,代码如下_proto_.onAnimation_BirdSing = function () { this.aniBirdSing = new Laya.Animation(); this.aniBirdSing.loadAtlas("res/atlas/birdsing.json"); this.aniBirdSing.interval = 35; // 设置播放间隔(单位:毫秒) this.aniBirdSing.index = 0; // 当前播放索引 this...
来源: Laya_社区 发布时间: 20171026
...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.tab.pos(200, 200); this.tab.labelBold = true; this.tab.labelSize = 20; this.tab.labelStrokeColor = "#000000"; this.tab.labels = "Tab 1,Tab 2,Tab 3"; this.tab.labelColors = "#32556b,#8FB299,#ff0000"; this.tab.selectedIndex ...
来源: Laya3.0_文档 发布时间: 20240910
...nslate = new Laya.Vector3(0, 0, 0); function CmpScript() { CmpScript.super(this); this.x = 0; } Laya.class(CmpScript, "CmpScript", Laya.Script) CmpScript.prototype._initialize = function (owner) { var _this = this; CmpScript.__super.prototype._initialize.call(this, owner); } CmpScript.prototype._upd...
来源: Laya_社区 发布时间: 20161126
...图片的时候,源码里这一步会的url为“”的时候,会执行this.onLoaded(null)这一步_ _proto.load=function(url,type,cache,group,ignoreCache,useWorkerLoader){ (cache===void 0)&& (cache=true); (ignoreCache===void 0)&& (ignoreCache=fals...
来源: Laya_社区 发布时间: 20200427
LoginView.super(this);这样调用的父类的构造函数的方法,不能用吗 LoginView.super(this);这是在教学视频里用的方法,好像不能用了。 这些layaair中特别的语法规则在哪里统一可以找到 var LoginView = function () { LoginView.super(this); t...
来源: Laya_社区 发布时间: 20170317
....stage.screenMode = Laya.Stage.SCREEN_NONE; private animate(): void { this._position.x = Math.sin(this.scaleDelta += 0.01); this.layaMonkey3D.transform.position = this._position; this.camera.viewport.project(this.layaMonkey3D.transform.position, this.camera.projectionViewMatrix, this....
来源: Laya_社区 发布时间: 20180425
.../res/threeDimen/staticModel/LayaPlane/LayaPlane.lh" ], Laya.Handler.create(this, onComplete)); function onComplete() { setMaterials(scene.getChildByName("scene")); layaPlane.transform.localPosition = new Laya.Vector3(0, 0.5, -1); Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler....
来源: Laya_示例 发布时间: 20250224
... list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); function onSelect(index) { alert("当前选择的索引:" + index); } 第一次点击时有事件响应: 再次点击(不要点击其它的列表)...
来源: Laya_社区 发布时间: 20180507