大约有 426 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0064 秒)
...Array; Laya.stage.addChild(storeTxList); 悬赏找大神看问题 export default class StoreItem extends Laya.Box { constructor() { super(); this.size(195, 210); } } 附件 : --> ListDemo.zip 2019-07-11 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 ...
来源: Laya_社区 发布时间: 20190711
...码是配套的,不同开放域代码请勿使用该类 */ export class WXBitmap extends Laya.Sprite { private $viewName: string; private $texture: Laya.Texture; private $bitmap: any; private $timer: lie.Timer; public auto: ...
来源: Laya_社区 发布时间: 20181114
...uf from "./libs/protobuf/protobuf"; const { regClass } = Laya; @regClass() export class ProtobufDemo extends Laya.Script { onEnable() { console.log("Game start"); } } 2.2 Protobuf示例脚本 引入了protobuf模块就可以直接在项目中使用了,这里我们写了一个简单的示例DEMO,...
来源: Laya3.0_文档 发布时间: 20251010
...添加的示例如下: const { regClass, property } = Laya; @regClass() export class Demo extends Laya.Script { spine: Laya.Spine2DRenderNode; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { // 加载Spine动画数据资源(...
来源: Laya3.0_文档 发布时间: 20260131
...ilable ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/reflectionProbe/ReflectionProbe" ReflectionProbe Class ReflectionProbe ReflectionProbe 类用于实现反射探针组件 miner Hierarchy Sprite3D ReflectionProbe Index Constructors construc...
来源: Laya3.0_api 发布时间: 20231102
...) 脚本的代码为: 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...
来源: Laya3.0_文档 发布时间: 20251010
...于节点的宽高,所以绘制的图形也是在宽高范围内。 */ export class DrawLine extends Laya.Script { declare owner: Laya.Sprite; line2DRender: Laya.Line2DRender; lastMousePos: number[] = []; isDrawing: boolean = false; // 标记是否正在绘制 // 组件被激活后执行,此时...
来源: Laya3.0_文档 发布时间: 20251010
...可以通过unDestroyedScenes属性查看还未被销毁的场景列表 */ export class Scene extends Sprite { /**创建后,还未被销毁的场景列表,方便查看还未被销毁的场景列表,方便内存管理,本属性只读,请不要直接修改*/ static readonly unDestroyedScenes...
来源: Laya3.0_文档 发布时间: 20251010
...理资源 代码示例: const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { private mCurrIndex: number = 0; private mArmature: Laya.Skeleton; onStart() { console.log("Game start"); //加载内置骨骼动画资源 Laya.loader.load("skeleton/Dragon/Dragon.sk").t...
来源: Laya3.0_文档 发布时间: 20251010
...ui编辑器上没有摸索到如何处理。只能通过代码处理了。 export class SplitAtlasDialog extends IEditor.Dialog { async create() { let panel = IEditor.GUIUtils.createInspectorPanel(); let data = Editor.getSettings("SplitAtlasSetting").data; panel.inspect(data, "SplitAtlasSetting"); t...
来源: Laya_社区 发布时间: 20250702