大约有 283 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0042 秒)
...效果会错乱掉? var WID = 80, HEI = 400; function Item1() { Item1.__super.call(this); this.size(WID, HEI); this.setImg = function(src) { var ani = new Animation(); ani.loadAtlas(src); // 加载图集动画 ani.interval = 100; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前...
来源: Laya_社区 发布时间: 20170627
... cdTime:int; public var isCd:Boolean = false; public function CdSprite() { super(); this.scrollRect = rect; this.alpha = 0.85; } public function setSize(bian:int):void{ r = bian / Math.SQRT2; rect = new Rectangle(0,0,bian,bian); this.scrollRect = rect; pos = bian * 0.5; } public function set360(valu...
来源: Laya_社区 发布时间: 20171124
... default class BulletControlTrigger extends Laya.Script3D { constructor(){ super(); } /** * 开始触发时执行 * 此方法为虚方法,使用时重写覆盖即可 */ onTriggerEnter(other){ console.log("onTriggerEnter"); }; onTriggerStay(other){ console.log("onTriggerStay"); }; onCollision...
来源: Laya_社区 发布时间: 20191215
... { type : Laya.FontClip } ) public fontclp: Laya.FontClip; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.fontclp.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.fo...
来源: Laya3.0_文档 发布时间: 20230901
...ata: any,textureData: Laya.Texture,width: number,posType:string = "left"){ super(); this.width = width; this._posType = posType; this._jsonData = jsonData; this._imageData = textureData; } public set padding(v: number){ this._padding = v; this.setCharsPos(); } public get padding(): number{ return th...
来源: Laya_社区 发布时间: 20161014
...xt; private img: Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Image(); this.img.width = 200; this.img.height = 200; this.height = 230; ...
来源: Laya_社区 发布时间: 20210122
...xtends Laya.Script { constructor(){ alert("1"); //执行后这里触发了 super();} onEnable(){ alert("2"); //执行后这里触发了 } onclick(){ alert("3"); //执行后点击按钮这里没触发,不知道为什么 //Laya.Scene.open("_game.scene"); } } 2018-10-28 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20181028
... }\ "; */ super(vs, ps, "coolDownShader"); } } import WebGLContext = laya.webgl.WebGLContext; import Value2D = laya.webgl.shader.d2.value.Value2D; import CONST3D2D = laya.webgl.utils.CONST3D2D; expor...
来源: Laya_社区 发布时间: 20170606
...:boolean; private twoFirst:boolean; constructor(){ super(); this._scene = null; this._text = null; this._camera = null; this.rotation = new Laya.Vector3(0, 0.01, 0); this.lastPosition = new Laya.Vector2(0, 0); this.di...
来源: Laya_社区 发布时间: 20190531
...:boolean; private twoFirst:boolean; constructor(){ super(); this._scene = null; this._text = null; this._camera = null; this.rotation = new Laya.Vector3(0, 0.01, 0); this.lastPosition = new Laya.Vector2(0, 0); this.di...
来源: Laya_社区 发布时间: 20190605