大约有 237 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0040 秒)
...tartView.prototype.open = function(){ console.log("Open is ok"); } }; Laya.class(GameStartView,"GameStartView", GameStartUI); 输出:Button {toggle: false, _bitmap: AutoBitmap, _text: Text, _strokeColors: null, _state: 0…} 其中为什么on事件无法触发,该怎么样写?谢谢! 2018...
来源: Laya_社区 发布时间: 20180213
...以出来当前的选项,说明继承没有问题,但是无法更改 class Tab extends TabUI{ constructor() { super() this.zOrder = 1 console.log(this._tab._selectedIndex) //返回1,正常 this._tab._selectedIndex = 0 } } xdkaka • 2017-12-14 17:40 发布肯定是已经发布了的。。。...
来源: Laya_社区 发布时间: 20171214
...什么意思啊? ScrollBar 组件图片名字带$是什么意思? Laya.class是什么意思 Shake.instance.start(5, 500);这里面的5和500什么意思? layabox js中 的__super,call()是什么意思 这个写法是什么意思,能否解释一下,谢谢 camera的orthographicVerticalSize属...
来源: Laya_社区 发布时间: 20170219
...IDE\resources\app\out\vs\layaEditor\renders\editorui2.0这个文件,把__class(HtmlText,'laya.editorUI.HtmlText');这句话改成__class(HtmlText,'laya.editorUI.HtmlText',_super);就没问题了
来源: Laya_社区 发布时间: 20191028
...a.Script _start和_update以及_lateupdate不执行是什么原因呢? class b extends Laya.Script{ _initialize(owner:Laya.Sprite3D){ super._initialize(owner); //加打印可以执行 } _start(state:Laya.RenderState):void{ //加打印不执行 ...
来源: Laya_社区 发布时间: 20180423
...响事件的触发这里是随便取的名。 ```typescript export default class SceneScript extends Laya.Script3D { constructor(){ super(); //用于表现的方法 this.showMsgFunc = null; } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg() { console....
来源: Laya2.0_文档 发布时间: 20210715
...响事件的触发这里是随便取的名。 ```typescript export default class SceneScript extends Laya.Script3D { //用于表现的方法 public showMsgFunc; constructor(){ super(); } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg(){ console.log("S...
来源: Laya2.0_文档 发布时间: 20210715
...er.JUMP = "player_jump"; //状态 Player.DIE = "player_die"; //Player Laya.class(Player,"Player", laya.display.Sprite); var _proto = Player.prototype; //是否缓存了 Player.cached = false; _proto.init = function(){ //动画缓存起来 if(!Player.cached){ Player.cached = true; //根据不同的...
来源: Laya_社区 发布时间: 20160801
...简单的思路,不知道Laya本身是否有解决方案啊 wxhelper.jsclass WXHELPER { constructor () { this._isWxContext = !!window.wx } onShow (callback) { if (!this._isWxContext) return window.wx.onShow(callback) } onHide (callback) { if (!this._isWxContext) return window.wx.onHide(callback)...
来源: Laya_社区 发布时间: 20181101
...al.__super.call(this); this.setShaderName("CustomShader"); } Laya.class(CustomMaterial, "CustomMaterial", Laya.BaseMaterial); CustomMaterial.DIFFUSETEXTURE = 1; CustomMaterial.NORMALTEXTURE = 2; CustomMaterial.ALPHATESTVALUE = 0; CustomMaterial.prototype.getDiffuseTexture = function (...
来源: Laya_社区 发布时间: 20170526