大约有 3,124 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0076 秒)
...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 关于使用matterjs物理引擎鼠标问题 ios14系统下 blendMode='lighter' 图片异常 问题状态 最新活动: 2020-08-11 17:46 浏览: 2318 关注: 2 人 victor3345 • 2020-09-21 18:46 请问目前我...
来源: Laya_社区 发布时间: 20200810
...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
...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
...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
...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
... = 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
...回事?代码如下: /**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
...替效果。 示例代码如下: 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
...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
...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