• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,102 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0059 秒)

801. 无法触发浏览器文件上传框 [ 44%]

...in { private btn: Laya.Button; private skin: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private ...

来源: Laya_社区 发布时间: 20170511

802. 输入设备-摇一摇 [ 44%]

...te picH:number = 484; private console:Text; private shakeCount:number = 0; constructor() { Laya.init(this.picW, Browser.height * this.picW / Browser.width); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; this.showShakePic(); this.showConsoleText(); this.startShake(); } private showShakePic():void { var...

来源: Laya_示例 发布时间: 20250225

803. 加载TiledMap 不显示 [ 44%]

...  private layer: MapLayer;     private sprite: Sprite;      constructor ()     {         // 不支持WebGL时自动切换至Canvas         // Laya.init(1600, 800, WebGL);          // Laya.stage.alignV = Stage.ALIGN_MIDDLE;         // Laya....

来源: Laya_社区 发布时间: 20201230

804. 文本-字符限制 [ 44%]

...er = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Restrict { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 300, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgCo...

来源: Laya_示例 发布时间: 20250225

805. layaAir TS项目如何引用protoBuf库? [ 44%]

...个连接,但稍微做了修改: // 程序入口 class GameMain{     constructor(){         var Loader = Laya.Loader;         var Browser = Laya.Browser;         var Handler = Laya.Handler;         var ProtoBuf = Browser.window.protobuf;         Laya.init(550, 400...

来源: Laya_社区 发布时间: 20170216

806. laya.d3.core.material.PBRStandardMaterial_API3.0 [ 44%]

...质。 Hierarchy PBRMaterial PBRStandardMaterial Implements IClone Index Constructors constructor Properties _id destroyedImmediately lock name renderQueue url uuid ALPHATESTVALUE DEBUG RENDERQUEUE_ALPHATEST RENDERQUEUE_OPAQUE RENDERQUEUE_TRANSPARENT SHADERDEFINE_ADDTIVEFOG SHADERDEFINE_ALPHATEST SH...

来源: Laya3.0_api 发布时间: 20231115

807. swf在layaairts里播放的问题,播放不了,swf在群文件star.swf [ 44%]

... private ROBOT_TEXTURE_PATH: string = "res/swf/star.png";         constructor() {             // Laya.init(800, 600); // Laya.loader.load([{"url":"res/swf/star.swf","type":Laya.Loader.BUFFER}],Laya.Handler.create(this,this.onloadswf)); let loader:Laya.Loader = new Laya.Loader();...

来源: Laya_社区 发布时间: 20180203

808. Sprite-切换纹理 [ 44%]

...res/apes/monkey3.png"; private flag: boolean = false; private ape: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "sh...

来源: Laya_示例 发布时间: 20250225

809. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 44%]

...DialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rul...

来源: Laya_社区 发布时间: 20180724

810. laya.map.TileAniSprite_API3.0 [ 44%]

...象(TileAniSprite)) author ... Hierarchy Sprite TileAniSprite Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blend...

来源: Laya3.0_api 发布时间: 20231115