大约有 1,764 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0062 秒)
Laya_社区(623) Laya3.0_api(482) Laya2.0_文档(180) Laya_示例(146) Laya2.0_示例(116) Laya3.0_文档(86) Laya2.0_api(67) laya_api(64)
...时候就会直接触发? import WebGL = Laya.WebGL; // 程序入口 class GameMain { constructor() { Laya.init(0, 0, WebGL); // Laya.stage.scaleMode = 'full'; Laya.stage.screenMode = 'vertical'; Laya.stage.alignH = 'center'; Laya.stage.bgColor = '#ff00ff'; Laya.Stat.show(0, 0); Laya.stage.on(L...
来源: Laya_社区 发布时间: 20180525
...示。 (动图1-3) (动图1-4) 1.3 脚本控制TextArea const { regClass, property } = Laya; @regClass() export class TextAreaControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextArea } ) public txtarea: Laya.TextArea; constructor() { super(); } /** * ...
来源: Laya3.0_文档 发布时间: 20251010
...vas; import laya.resource.Texture; import rain.core.StageReferance; public class Main { private var _view:Sprite; public function Main() { Config.isAntialias = true;//抗锯齿 //初始化引擎 Laya.init(1024, 768); //Stat.show(); Laya.stage.bgColor = "#ccc"; Laya.stage.scaleMode = Stage.SCALE_SHOW...
来源: Laya_社区 发布时间: 20180319
...a.events.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() { WebGL.enable(); Laya.init(1000, 800); //显示一个图片 sp = Sprite.fromImage("res/bg.jpg"); Laya.stage.addChild(sp); //显示一...
来源: Laya2.0_文档 发布时间: 20210714
...a.events.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() { WebGL.enable(); Laya.init(1000, 800); //显示一个图片 sp = Sprite.fromImage("res/bg.jpg"); Laya.stage.addChild(sp); //显示一...
来源: Laya2.0_文档 发布时间: 20200929
...'; import { Game } from './public/Game'; import Stage = Laya.Stage; export class TexasMain{ private balls:Laya.Sprite = ; constructor(){ Config.isAntialias = true // alert("宽"+Laya.Browser.clientWidth+"高"+Laya.Browser.clientHeight ); // Laya.init(Laya.Browser.clientWidth,Laya.Browser.clientHeigh...
来源: Laya_社区 发布时间: 20180226
...splay.Sprite; import laya.events.Event; import laya.renders.Render; public class MoveTest { public function MoveTest() { Laya.init(600,600); var sp:Sprite = new Sprite(); sp.autoSize=true; sp.graphics.drawRect(0,0,100,100,"#ff0000"); sp.on(Event.CLICK,this,onClick); Laya.stage.addChild(sp); } privat...
来源: Laya_社区 发布时间: 20171226
...er的时候报错: GlowFilter is not a constructor Uncaught Can not find class srcipt/game/Game_App.ts 问题状态 最新活动: 2019-02-22 15:33 浏览: 2189 关注: 2 人
来源: Laya_社区 发布时间: 20190222
...G_ENDIAN;设置为高位即可。 4.借用下any ts里面类的你会发现classB明明继承了classA或者实现了接口IA,但是你在使用classB做处理使会出现报错,这个时候借用下any吧,如: classA implements IA{ } classB extends classA{ } var items:IA = ; function(item:c...
来源: Laya_社区 发布时间: 20161109
...成后调用Loader.clearRes后,并不能真正释放资源的bug demo: class NewTest { public static url: string = "333.json"; private loadedMap; constructor() { this.loadedMap = Laya.Loader["loadedMap"]; Laya.init(720, 1280, Laya.WebGL); Laya.Stat.show(0,0); Laya.stage.alignH = "center"; Laya.s...
来源: Laya_社区 发布时间: 20181018