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

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

71. 预制体 · LayaAir3.4 · 引擎文档 · LAYABOX [ 26%]

...roperty } = Laya; @regClass() export class ScriptA extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预...

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

72. 插件开发说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 25%]

...") export class MyPanel extends IEditor.EditorPanel { private _data : any; declare _panel : IEditor.InspectorPanel; async create() { this._panel = IEditor.GUIUtils.createInspectorPanel(); Editor.typeRegistry.addTypes([ { name : "MyPanelType", //请注意,名字是全局唯一的,一定要长 pro...

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

73. [LayaAirIDE3]xcode切入切出声音不播放 [ 22%]

..."src/tools/JsonTool"; import { ResourceManager } from "./ResourceManager"; declare function testmusic_cn_ios(accountId: string): void; enum SoundType {     BGM,     Effect,     Dialogue, } export class SoundManager {     private static instance: SoundManager;     private curBGMUrl: string;...

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

74. 时间轴动画 · LayaAir3.4 · 引擎文档 · LAYABOX [ 18%]

...property } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } event1(p1:any, p2:any): void { console.log("event1",p1,p2); } } 在脚本中创建event1的方法和接收两个参数,最后我们来运行动画,看看运行结...

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

75. laya.display.Text_API3.0 [ 7%]

...yout _onPostLayout: () => void Defined in laya/display/Text.ts:203 Type declaration (): void Returns void _ownGraphics _ownGraphics: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _parseEscapeChars _parseEscapeChars: boolean Defined in laya/display/Text.ts:...

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

76. laya.display.Input_API3.0 [ 7%]

...Inherited from Text._onPostLayout Defined in laya/display/Text.ts:203 Type declaration (): void Returns void _ownGraphics _ownGraphics: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _parseEscapeChars _parseEscapeChars: boolean Inherited from Text._parseEscape...

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