大约有 1,253 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0054 秒)
...回事?代码如下: /**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_文档 发布时间: 20250214
...* 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
...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
...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
...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
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/WebXR/core/WebXRSessionManager" WebXRSessionManager Class WebXRSessionManager Manages an XRSession to work with layaAir engine author miner Hierarchy EventDispatcher WebXRSessionManager Index Pr...
来源: Laya3.0_api 发布时间: 20231115
...0版本之后材质基类由BaseMaterial变更为Material。 ```typescript export class CustomMaterial extends Laya.Material { public function CustomMaterial() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 在使用自...
来源: Laya2.0_文档 发布时间: 20210715
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/maths/Vector4" Vector4 Class Vector4 Vector4 类用于创建四维向量。 Hierarchy Vector4 Implements IClone Index Constructors constructor Properties w x y z ONE UnitW UnitX UnitY UnitZ ZERO Me...
来源: Laya3.0_api 发布时间: 20231115
...人封装了pomloClient如: /** 基于pomelo网络握手通讯*/ export class Socket extends Laya.EventDispatcher { private pomelo: Pomelo; private mDecorate:Decorate;//装饰器 private mHost: string; private mPort: number; priva...
来源: Laya_社区 发布时间: 20161109