大约有 20 项符合查询结果, 库内数据总量为 30,960 项。 (搜索耗时: 0.0058 秒)
...10 2019-05-10 17:10:38.479438+0800 SwiftLayaNative[98971:4069811] Start js scripts/apploader.js 2019-05-10 17:10:38.479618+0800 SwiftLayaNative[98971:4069811] OpenGL ES version [OpenGL ES 3.0 APPLE-17.0.37] 2019-05-10 17:10:38.479792+0800 SwiftLayaNative[98971:4069811] INFO:gles 支持的最大顶...
来源: Laya_社区 发布时间: 20190510
...代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Button }) public btn: Laya.Button; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.btn.scale(5, ...
来源: Laya3.0_文档 发布时间: 20240910
...ss, property } = Laya; @regClass() export class LightOccluder extends Laya.Script { private spotLight: Laya.Sprite = new Laya.Sprite(); private background: Laya.Sprite = new Laya.Sprite(); private lightOccluder: Laya.Sprite = new Laya.Sprite(); private backgroundTexture: string = "resources/bg2.png"...
来源: Laya3.0_文档 发布时间: 20250314
...IDE插件开发说明一、插件能力二、插件运行环境2.1 在Laya.Script中使用本地能力2.2 UI进程脚本和Scene进程脚本通讯的方式2.3 预览运行进程和UI进程的通讯方式三、制作编辑器UI四、程序化生成界面4.1 常用方法4.2 示例五、自定义Inspec...
来源: Laya3.0_文档 发布时间: 20250314
...t { regClass } = Laya; @regClass() export class WebSocketDemo extends Laya.Script { private socket: Laya.Socket; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { this.socket = new Laya.Socket(); // 注册事件监听 this.socket.on(Laya.Event.OPEN, this, this.onSocke...
来源: Laya3.0_文档 发布时间: 20250314
...代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Sprite }) public sprite1: Laya.Sprite; @property({ type: Laya.Sprite }) public sprite2: Laya.Sprite; constructor() { super(); } /** * 组件...
来源: Laya3.0_文档 发布时间: 20250311
...下代码: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕...
来源: Laya3.0_文档 发布时间: 20250314
...Class, property } = Laya; @regClass() export class TestSprite extends Laya.Script { // 用于显示鼠标点击的位置 @property({ type: Laya.Sprite }) public hit: Sprite; private _temp: Sprite; private _allAgent: Nav2DAgent[] = []; private findCompents(lists: any[], sprite: Sprite, componentType:...
来源: Laya3.0_文档 发布时间: 20250314
... const { regClass, property } = Laya; @regClass() export class CameraMoveScript extends Laya.Script3D { /** @private */ protected _tempVector3: Laya.Vector3 = new Laya.Vector3(); protected lastMouseX: number = 0; protected lastMouseY: number = 0; protected yawPitchRoll: Laya.Vector3 = new Laya.Vecto...
来源: Laya3.0_文档 发布时间: 20250314
...上一杯红茶,写下了laya的故事。 工具及涉及:layaide+typescript+pomelo+tiledmap+其他工具 项目类型:mmorpg 人员:zom(客户端) + arrow(服务端) 进度:单机体验状态,实现 摇杆,切图,释放技能(由于人员和精力有限还需要处理公...
来源: Laya_社区 发布时间: 20161109