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

大约有 3,124 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0076 秒)

2541. wkwebview使用异常 [ 46%]

...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 关于使用matterjs物理引擎鼠标问题 ios14系统下 blendMode='lighter' 图片异常 问题状态 最新活动: 2020-08-11 17:46 浏览: 2318 关注: 2 人 victor3345 • 2020-09-21 18:46 请问目前我...

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

2542. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 46%]

...log=Laya.Dialog; var Scene=Laya.Scene; var REG = Laya.ClassUtils.regClass; export class kick_effectUI extends EffectAnimation { //然后又改成Laya.EffectAnimation constructor(){ super(); this.ani1=null; this.effectData =ui.kick_effectUI.uiView;; } } kick_effectUI.uiView={"type":"View","props":{},...

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

2543. UI-ProgressBar [ 46%]

...aya.ProgressBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ProgressBar { private progressBar: ProgressBar; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CEN...

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

2544. 计时器-间隔循环 [ 46%]

...ext = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_Interval { private rotateTimeBasedText: Text; private rotateFrameRateBasedText: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); L...

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

2545. List翻页效果 [ 46%]

...onfigInfo from "../data/ConfigInfo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new L...

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

2546. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 46%]

... = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export default class Test_11_Sound {  //声明一个信息文本 private txtInfo: Text;  constructor() { this.setup(); }  private setup(): void { var gap: number = 10;  //创建一个Sprite充当音效播放按钮 var sou...

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

2547. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 46%]

...回事?代码如下:   /**Created by the LayaAirIDE*/ module view { export class Guide extends ui.GuideUI { constructor() { super(); // 创建Video元素 let videoElmt: any = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElmt); // 设置Video元素地样式和...

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

2548. 2D方向光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 46%]

...替效果。 示例代码如下: const { regClass } = Laya; @regClass() export class DayNight extends Laya.Script { declare owner: Laya.Sprite; private lightComp: Laya.DirectionLight2D; private dayTime: number = 0; private dayDuration: number = 24; // 一个完整周期的秒数 private displayTex...

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

2549. 文本-自动调整文本尺寸 [ 46%]

...ext = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_AutoSize { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showal...

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

2550. laya.d3.math.BoundsImpl_API3.0 [ 46%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/math/BoundsImpl" BoundsImpl Class BoundsImpl BoundsImp 类用于创建包围体。 Hierarchy BoundsImpl Implements IClone Index Constructors constructor Properties _boundBox Accessors max min Me...

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