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

大约有 2,995 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0078 秒)

831. UI-Dialog [ 72%]

...E_BTN_PADDING = 5, assets = ["res/ui/dialog (1).png", "res/ui/close.png"]; class UI_Dialog { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stag...

来源: Laya2.0_示例 发布时间: 20251219

832. 刚接触laya的一系列问题 [ 72%]

...子没?我尝试直接在后面添加,无效,得到的提示:[ts] Classes can only extend a single class; 3,关于锚点找到锚点设置无效的问题了,我在构造函数设置的,没效果,但是如果在延迟两帧以后设置就可以了,用不了button,只能用this...

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

833. TypeError: Cannot read property 'on' of null [ 72%]

...r.window.conch.setFontFaceFromBuffer is not a function Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprit...

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

834. 骨骼动画-藤蔓 [ 72%]

...。let mFactory, mArmature, mStartX = 200, mStartY = 500, mCurrIndex = 0; class Skeleton_SpineVine { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya.Sprite; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, ...

来源: Laya2.0_示例 发布时间: 20251219

835. laya.filters.GlowFilter [ 72%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames GlowFilterProperties | Methods Packagelaya.filtersClasspublic class GlowFilterInheritanceGlowFilter Filter Object 发光滤镜(也可以当成阴影滤使用) Public Properties Hide Inherited Public Properties Show Inh...

来源: Laya2.0_api 发布时间: 20190513

836. 屏幕适配-缩放-Show All [ 72%]

...dule laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_SHOW_ALL { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createCantralRect(); } private createCantralRect():...

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

837. 屏幕适配-缩放-Extract Fit [ 72%]

...dule laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_EXTRACT_FIT { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_EXACTFIT; Laya.stage.bgColor = "#232628"; this.createCantralRect(); } private createCantralRec...

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

838. TS版分包报错 [ 72%]

...用的是类似如下写法:  namespace com.test {         export class MyTest{         // do something...         } }        今天在定义组件并导出后,在 layaUI.max.all.ts 下生成了类似如下代码: module ui.coreUI {         export class TestUI extends Vie...

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

839. laya.net.Socket [ 72%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames SocketProperties | Methods | Events | Constants Packagelaya.netClasspublic class SocketInheritanceSocket EventDispatcher Object Socket 封装了 HTML5 WebSocket ,允许服务器端与客户端进行全双工(full-d...

来源: laya_api 发布时间: 20170929

840. module写法的模块无法使用,其他地方使用会报错 [ 72%]

...法的模块无法使用,其他地方使用会报错 module bili{ export class Test{ constructor(){ console.log("Test"); } } } 2018-09-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 7 个回复 牛唠叨 赞同来自: Ch...

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