大约有 426 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0071 秒)
...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
...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
...,获取地理位置。 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
...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
...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
...回事?代码如下: /**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
...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
...码设置示例如下: 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
...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
...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