大约有 458 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
...什么在onUpdate会输出一次为空 export default class mtTest extends Laya.Script{ lab:Laya.Label; onAwake():void{ } onStart():void{ this.lab=this.owner as Laya.Label; } ...
来源: Laya_社区 发布时间: 20200602
...mport Shader = laya.webgl.shader.Shader; export class coolDownShader extends Shader { /** * 当前着色器的一个实例对象。 */ public static shader: coolDownShader = new coolDownShader(); constructor() { ...
来源: Laya_社区 发布时间: 20170606
封装类的时候 怎么在类中表示自身? class BackGround extends Laya.Sprite{ constructor() { super(); new init(); function init() { var bg1 = new Laya.Sprite(); var bg2 = new Laya.Sprite(); //背景图 // box.loadImage("../bin/background.png"); // Laya.stage.addChild(box); bg1.loadImage("....
来源: Laya_社区 发布时间: 20160926
... 林龙 赞同来自: ts 编译后的 js 代码为: class StarFlyUI extends ui.hall.HallViewUI { 2018-05-28 0 0 分享 微博 QZONE 微信 林龙 赞同来自: 用es5. 还是要靠自己 2018-05-29 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...
来源: Laya_社区 发布时间: 20180528
... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Tree }) public tree: Laya.Tree; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //初始化树状列表的数...
来源: Laya3.0_文档 发布时间: 20251010
...9 我截图的这个是源码 wudi199553 • 2017-11-13 19:48 class TestUI extends ui.test.TestPageUI { constructor() { super(); } } Laya.init(600, 400); Laya.stage.bgColor = "#FFFFF00"; this.onLoaded(); function onLoaded(): void { var testUI: TestUI = new TestUI(); Laya.stage.addChild(tes...
来源: Laya_社区 发布时间: 20171113
获取Sprite位置问题 class Plant extends Laya.Sprite { public body :Laya.Animation; constructor(){ super(); this.body = new Laya.Animation(); Laya.Animation.createFrames(["res/war/hero_fly1.png","res/war/hero_fly2.png"],"fly"); this.addChild(this.body); this.body.play(0,true,"fly"); //获取动...
来源: Laya_社区 发布时间: 20180427
...附上代码 : (function () { 'use strict'; class GameMain extends Laya.Scene { constructor(){ super(); GameMain.instance = this; Laya.MouseManager.multiTouchEnabled = false; this.loadScene("m...
来源: Laya_社区 发布时间: 20201110
...Mode; import flash.events.Event; import login.LoginView; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); this.stage.s...
来源: Laya_社区 发布时间: 20151103
...g.ILogger; import org.as3lib.logging.Log; public class Game extends Sprite { CONFIG::debug { private static var logger:Logger = new Logger(); private var log:ILogger; } public function Game...
来源: Laya_社区 发布时间: 20200217