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

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

741. 文本-Overflow [ 60%]

...ext = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Overflow { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(600, 300, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.S...

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

742. 多重遮罩显示异常 [ 60%]

...超出panel显示,要么显示一部分或者消失,测试代码如下 export default class ClipView extends Laya.Sprite { constructor() { super(); this.init(); } init() { let bg = new Laya.Sprite(); bg.graphics.drawRect(0, 0, 500, 500, '#aaa'); this.addChild(bg); this.panel = new Laya.Panel(); ...

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

743. 网络和格式-POST [ 59%]

...aya.HttpRequest; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Network_POST { private hr: HttpRequest; private logger: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN...

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

744. laya.d3.component.LODGroup_API3.0 [ 59%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/component/LODGroup" LODGroup Class LODGroup SpotLight 类用于构建LOD组件 Hierarchy Component LODGroup Implements IBoundsCell Index Constructors constructor Properties _extra _singleton own...

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

745. popup设置了关闭效果后,窗口关闭但遮罩层没有关掉,请问如何处理 [ 59%]

...e.linearIn);              }   import { ui } from "./ui/layaMaxUI"; export default class ShopDialog extends ui.ShopDialogUI { constructor() { super(); this.popupEffect = Laya.Handler.create(this, this.showEffect); this.closeEffect = Laya.Handler.create(this, this.hideEffect); this.btnClose.on...

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

746. 对象池 · LayaAir3.0文档 · LAYABOX [ 59%]

...,我们可以对每个特效用统一的方式进行管理对象池: export class EffectA { constructor() { super(); } static create(): EffectA { Pool.getItemByClass(EffectA); } recover(): void { Pool.recoverByClass(this); } } export class EffectB { constructor() { super(); } static create(): Ef...

来源: Laya3.0_文档 发布时间: 20230303

747. 网络和格式-GET [ 59%]

...aya.HttpRequest; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Network_GET { private hr: HttpRequest; private logger: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_...

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

748. List属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 59%]

...ist = Laya.List; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_List { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_S...

来源: Laya2.0_文档 发布时间: 20210715

749. 按钮组件 · LayaAir3.0文档 · LAYABOX [ 59%]

...加如下示例代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Button }) public btn: Laya.Button; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { thi...

来源: Laya3.0_文档 发布时间: 20231019

750. 区块地图-滚动地图 [ 59%]

...andler = Laya.Handler; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class TiledMap_SimpleDemo { private tiledMap: TiledMap; private mLastMouseX: number = 0; private mLastMouseY: number = 0; private mX: number = 0; private mY: number = 0; constructor() { // 不支持WebGL时自动切换...

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