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

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

31. 2D方向光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...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 displayText: Laya.Text; // 文本显示当前时间 o...

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

32. 2D自由形态光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...s } = Laya; @regClass() export class LightEffectDemo extends Laya.Script { declare owner: Laya.Sprite; private lightComp: Laya.FreeformLight2D; private rotateSpeed: number = 2; // 增加旋转速度 private scaleTime: number = 0; private scaleSpeed: number = 3; // 增加缩放速度 private intensit...

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

33. 显示文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...ty } = Laya; @regClass() export class LabelControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.Label } ) public lab: Laya.Label; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */...

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

34. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

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

35. 场景管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...perty } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Prefab }) private loadingScenePrefab: Laya.Prefab; private loadingScene: Laya.Node; constructor() { super(); } /** * 第一次执行update之前执行,只会执行一次...

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

36. 输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

... = Laya; @regClass() export class TextInputControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextInput } ) public txtin: Laya.TextInput; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执...

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

37. 2D线渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...也是在宽高范围内。 */ export class DrawLine extends Laya.Script { declare owner: Laya.Sprite; line2DRender: Laya.Line2DRender; lastMousePos: number[] = []; isDrawing: boolean = false; // 标记是否正在绘制 // 组件被激活后执行,此时所有节点和组件均已创建完毕,...

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

38. 2D灯光与网格 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

...roperty } = Laya; @regClass() export class lightTest extends Laya.Script { declare owner: Laya.Sprite; @property({ type: Laya.Sprite }) light1: Laya.Sprite; @property({ type: Laya.Sprite }) mesh1: Laya.Sprite; @property({ type: Laya.Sprite }) mesh2: Laya.Sprite; private light1Render: Laya.FreeformLi...

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

39. 分享:Laya开发TS项目使用pomelo客户端SDK(pomelo-jsclient-websocket) [ 41%]

...,API也就几个函数,自行扩展另说,拿我自己的先抛个砖declare class PomeloClient { init(params:any, cb?:Function); request(route:string, msg?:any, cb?:Function); notify(route:string, params:any); on(event:string, cb:Function); off(event:string, cb:Function); disconnect(); } 我...

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

40. 抖音小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 40%]

...property } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ o...

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