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

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

971. laya.resource.Prefab_API3.0 [ 51%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/resource/HierarchyResource" Prefab Class Prefab Hierarchy Resource Prefab PrefabImpl Index Constructors constructor Properties _id destroyedImmediately lock name url uuid version DEBUG Accessors cp...

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

972. 鼠标交互-修正交互区域 [ 51%]

...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_FixInteractiveRegion { private logger: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDD...

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

973. List翻页效果 [ 51%]

...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

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

... = 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

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

...回事?代码如下:   /**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

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

...替效果。 示例代码如下: 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

977. laya.d3.animation.AnimationClip_API3.0 [ 51%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/animation/AnimationClip" AnimationClip Class AnimationClip AnimationClip 类用于动画片段资源。 Hierarchy Resource AnimationClip Index Constructors constructor Properties _id destroyedIm...

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

978. 颜色滤镜 差值变化 [ 51%]

...* leo */ module touch {     /**      * 颜色工具类      */ export class ColorTool { private _targetsValue: number = 16777215; private _targetsLastValue: number = null; private targets: Array<Laya.Sprite> = null; public static instance: ColorTool = null; private targetsFilter: L...

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

979. Laya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText [ 51%]

...9-10 09:48 浏览: 1266 关注: 5 人 大大大懒猫 • 2018-09-10 10:39 export class ShopTitle extends Laya.Script{ public title: string; constructor(){ super(); } public _initialize(owner: Laya.Sprite3D): void { super._initialize(owner); var sprite3D = this.owner as Laya.MeshSprite3D; var sprite...

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

980. List翻页效果怎么实现 [ 51%]

...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_社区 发布时间: 20181112