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

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

961. 仿照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

962. 2D方向光 · LayaAir3.3 · 引擎文档 · 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_文档 发布时间: 20250214

963. 颜色滤镜 差值变化 [ 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

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

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

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

967. laya.d3.webxr.core.WebXRSessionManager_API3.0 [ 51%]

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

968. 如何自定义Shader(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 50%]

...0版本之后材质基类由BaseMaterial变更为Material。 ```typescript export class CustomMaterial extends Laya.Material { public function CustomMaterial() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 ​ 在使用自...

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

969. laya.maths.Vector4_API3.0 [ 50%]

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

970. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 50%]

...人封装了pomloClient如:  /** 基于pomelo网络握手通讯*/     export class Socket extends Laya.EventDispatcher {         private pomelo: Pomelo;         private mDecorate:Decorate;//装饰器         private mHost: string;         private mPort: number;         priva...

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