大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0076 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
..._SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var dialog: Image = new Image("../../res/ui/dialog (3).png"); dialog.pos(165, 62.5); Laya.stage.addChild(dialog); } } } new laya.UI_Image();package { import laya.display.Stage; import laya.ui.Image; import laya.webgl.W...
来源: Laya_示例 发布时间: 20260303
...大 class CAffiche { private textfiled:Laya.HTMLDivElement; public Reset():void { gRoomView.chatBox.innerHTML = ""; gRoomView.chatBox.height = 1; } public SysSay(txt:string):void { this.AddChat(0, "法官", txt); } public PlayerSay(msg:any):void { this.AddChat(msg['from_client_seatsno'], msg['from_c...
来源: Laya_社区 发布时间: 20170911
...片下载设置完成才能调用drawToTexture,例如 onEnable(): void { const { x, y, width, height } = this.box Laya.loader.load('comp/image.png').then(v=>{ const texture = this.box.drawToTexture(width, height, x, y) as Laya.Texture ...
来源: Laya_社区 发布时间: 20240425
...is: RenderSprite, sprite: Sprite, context: Context, x: number, y: number): void Inherited from BlurFilter._filter Defined in laya/filters/Filter.ts:38 Parameters this: RenderSprite sprite: Sprite context: Context x: number y: number Returns void Globals "laya/filters/GlowFilter" GlowFilter construct...
来源: Laya3.0_api 发布时间: 20231115
...针对你的显示对象进行rotate旋转 private function createTexts():void { var sp:Sprite=new Sprite(); Laya.stage.addChild(sp); sp.graphics.drawLine(0,0,200,200,'#FF00000'); sp.pivot(0,0); Laya.timer.frameLoop(1,this,onTimer,[sp]); } private function onTimer(sp:Sprite):void { sp.rotation+=1; }...
来源: Laya_社区 发布时间: 20170424
使用 addChild 加载界面后,绑定事件报错 onConfigLoaded(): void { //加载IDE指定的场景 //GameConfig.startScene && Laya.Scene.open(GameConfig.startScene); Main.gameStart = new GameStart(); Laya.stage.addChild(Main.gameStart); ...
来源: Laya_社区 发布时间: 20190510
...ge.on(Event.MOUSE_DOWN,this,sceneClick); private function sceneClick():void { trace("scene clicked"); } 3,在button上添加按钮功能 button.on(Event.CLICK,this,onBtn); private function onBtn(e:Event):void { e.stopPropagation(); trace("button clicked"); } 在游戏中...
来源: Laya_社区 发布时间: 20180917
...xture截大图有问题,会丢失 private nsp:Laya.Sprite; init(): void { this.nsp=new Laya.Sprite(); this.nsp.graphics.drawRect(0,0,1600,1600,"#ff0000"); this.nsp.mouseThrough=true; Laya.stage.addChild(this.nsp); this.nsp.on(Laya.E...
来源: Laya_社区 发布时间: 20220809
...erer = false; private Renderer renderers; void Awake () { renderers = transform.GetComponent<Renderer> (); } void Update () { if (renderers) { ...
来源: Laya_社区 发布时间: 20171113
...调用的数据。正常的应用是不需要调用此方法的。 private void Hook() { if(!isExit) { isExit = true; Toast.makeText(this, "在按一次退出程序", Toast.LENGTH_SHORT).show(); new Timer().schedule(new TimerTask() { @Override public void run() { // TODO Auto-generated method stub i...
来源: Laya_社区 发布时间: 20170811