大约有 175 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0039 秒)
...ad property 'time' of undefined laya.d3.js:22278 at Animator.__proto._eventScript (file:///F:/Program/PF_LAYA2.1/game/bin/libs/laya.d3.js:22278:15) at Animator.__proto._updateEventScript (file:///F:/Program/PF_LAYA2.1/game/bin/libs/laya.d3.js:22315:11) at Animator.__proto._update (file:///F:/P...
来源: Laya_社区 发布时间: 20191026
...。 二、使用引擎的请求方法 XMLHttpRequest(XHR)是一个 JavaScript 对象,它提供了一种在浏览器中以异步方式发送 HTTP(或 HTTPS)请求并处理服务器响应的机制。例如,获取远程资源、提交表单数据、发送JSON数据等。 在LayaAir引擎中...
来源: Laya3.0_文档 发布时间: 20251010
... const { 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; // 文本显示当...
来源: Laya3.0_文档 发布时间: 20251010
... 大大大懒猫 • 2018-09-10 10:39 export class ShopTitle extends Laya.Script{ public title: string; constructor(){ super(); } public _initialize(owner: Laya.Sprite3D): void { super._initialize(owner); var sprite3D = this.owner as Laya.MeshSprite3D; var sprite3DMat = new Laya.StandardMaterial(); ...
来源: Laya_社区 发布时间: 20180814
...例如下: 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_文档 发布时间: 20251010
LayaAir IDE 1.4.0新增功能 附加(扩展)脚本的使用 .script和.prop脚本结合IDE在代码层的使用方式 2016-10-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: SONIC3D...
来源: Laya_社区 发布时间: 20161014
...一路回车。 package name:项目名字; version: 版本号; description: 对项目的描述; entry point: 项目的入口文件; test command:项目启动的时候要用什么命令来执行脚本文件; git repository:如果要将项目上传到git中的话,那么就需...
来源: Laya3.0_文档 发布时间: 20251010
...operty 'rayCast' of undefined export default class indexscene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config3D = new Laya...
来源: Laya_社区 发布时间: 20200903
2.0版本可用的CameraMoveScript.ts 引擎源码:点这里仅仅给找不到这个文件,或者使用这个文件无效果的小伙伴,还原一个2.0,跟示例里效果一样的文件: /** * ... * @author */ export class CameraMoveScript extends Laya.Script { /** @private ...
来源: Laya_社区 发布时间: 20200707
...例如下: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake()...
来源: Laya3.0_文档 发布时间: 20251010