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

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

311. laya.d3.core.Camera_API3.0 [ 55%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/Camera" Camera Class Camera Camera 类用于创建摄像机。 Hierarchy BaseCamera Camera WebXRCamera Index Constructors constructor Properties _cacheDepth _cacheDepthTexture _extra _forwa...

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

312. laya.d3.webxr.core.WebXRCamera_API3.0 [ 55%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/WebXR/core/WebXRCamera" WebXRCamera Class WebXRCamera author miner 类用于创建WebXR摄像机。 Hierarchy Camera WebXRCamera Index Constructors constructor Properties _cacheDepth _cacheDepth...

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

313. 获取位置信息 · LayaAir3.4 · 引擎文档 · LAYABOX [ 55%]

...,获取地理位置。 const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { constructor() { super(); } onMouseClick(evt: Laya.Event): void { // 尝试获取当前位置 Laya.Geolocation.getCurrentPosition( Laya.Handler.create(this, this.onSuccess), Laya.Han...

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

314. laya.d3.core.pixelline.PixelLineSprite3D_API3.0 [ 55%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/pixelLine/PixelLineSprite3D" PixelLineSprite3D Class PixelLineSprite3D PixelLineSprite3D 类用于像素线渲染精灵。 Hierarchy RenderableSprite3D PixelLineSprite3D Index Constructors ...

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

315. LayaBox HelloWorld实战 [ 54%]

...helloworld按钮弹出一个对话框,对话框里面展示 Hello World!export default class HelloWorld extends Laya.Scene { constructor() { super(); HelloWorld.instance = this; } onBtnShowClick(){ var dialog = new Laya.Dialog(); dialog.width=300; dialog.height=600; //var bg = new Laya.Image('comp...

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

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

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

317. laya.d3.core.material.Material_API3.0 [ 54%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/material/Material" Material Class Material Material 类用于创建材质。 Hierarchy Resource Material PixelLineMaterial UnlitMaterial BlinnPhongMaterial PBRMaterial SkyBoxMaterial SkyPro...

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

318. 角色控制器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 53%]

...码设置示例如下: const { regClass, property } = Laya; @regClass() export default class DirectMove extends Laya.Script { declare owner: Laya.Sprite3D; private characterController: Laya.CharacterController; onAwake(): void { // 获取 角色控制器 组件并赋值给 characterController this...

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

319. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 53%]

...2-22 15:40 @LayaAir小牛:const { regClass, property } = Laya; @regClass() export default class iceMonster extends Laya.Script { declare owner: Laya.Sprite; /** 用于兜底的 Animator2D(可选) */ private _animator: Laya.Animator2D; /** 承载 .mc 的动画播放器 */ private iceMonsterAni: L...

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

320. [LayaAirIDE3]xcode切入切出声音不播放 [ 53%]

...string): void; enum SoundType {     BGM,     Effect,     Dialogue, } export class SoundManager {     private static instance: SoundManager;     private curBGMUrl: string;     private bgmChannel: Laya.SoundChannel | null;     private effectChannels: Map<string, Laya.SoundChannel>;...

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