大约有 277 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
...代码: 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_文档 发布时间: 20251010
...了几个改动,在图3-3中都会有标识 对Label组件增加了LabelScript脚本(有“+”号标识) 对item节点修改了width属性(属性设置面板有黄色线提示) 添加了Button组件(有“+”号标识) 这些修改也可以覆盖到预制体中,我们来看看如...
来源: Laya3.0_文档 发布时间: 20241014
...ance 一直等于-1? -------------------------------- class RoleControlScript extends Laya.Script{ /*角色模型*/ public roleModel:Laya.Sprite3D; /*角色动画组件*/ public roleAni:Laya.Animator; /*角色当前动作*/ public currentAction:string = "stand"; /*角色动画是否完成*/ publ...
来源: Laya_社区 发布时间: 20171113
...了几个改动,在图3-3中都会有标识 对Label组件增加了LabelScript脚本(有“+”号标识) 对item节点修改了width属性(属性设置面板有黄色线提示) 添加了Button组件(有“+”号标识) 这些修改也可以覆盖到预制体中,我们来看看如...
来源: Laya3.0_文档 发布时间: 20251105
...代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.ViewStack }) public viewstack: Laya.ViewStack; @property({ type: Laya.Tab }) public tab: Laya.Tab; //组件被激活后执行,此时所有节点和组件均已创建完毕...
来源: Laya3.0_文档 发布时间: 20251010
...位置。 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.Handler.create(thi...
来源: Laya3.0_文档 发布时间: 20251010
...修改代码来切换单机版和网络版。 项目目录下的 resource/scripts/index.js 脚本的最后有个执行loadUrl的函数,这里会加载首页地址,修改这里的地址就能切换单机版和网络版,单机版的地址固定为 http://stand.alone.version/index.js。 例如,...
来源: Laya3.0_文档 发布时间: 20251010
...项目的时候自动生成在您的src代码目录 - 未知文件参入 Script正则匹配 出现null 情况,官方未想到null的情况 引起程序报错 ; iOS 项目 iOS项目构建完成后,项目目录下的 resource/scripts/index.js 脚本的最后有个执行loadUrl的函数,这里会加载首页地址,修改这里的地址就能切换单机版和网络版,单机版的地址固定为 http://stand.alone.version/index.js。 例如...
来源: Laya3.0_文档 发布时间: 20250104