大约有 506 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0092 秒)
...gClass, property } = 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.F...
来源: Laya3.0_文档 发布时间: 20251010
...indow is not defined 真机调试报错:LayaPlayer不支持的标签</SCRIPT> IDE通过.ui自动生成的ui代码报错 laya2 发布微信开放域工程,用微信开发者工具打开报错 小游戏项目 加载有中文的json文件 报错 播放背景音乐的问题 刚打开 桌面调...
来源: Laya_社区 发布时间: 20180626
...s");` 2. iOS 项目 iOS项目构建完成后,项目目录下的 resource/scripts/index.js 脚本的最后有个执行loadUrl的函数,这里会加载首页地址,修改这里的地址就能切换单机版和网络版,单机版的地址固定为 `http://stand.alone.version/index.html`。 例...
来源: Laya2.0_文档 发布时间: 20210715
...t Pre(T_2DContextPre)3.17 2D Context Render(T_2DContextRender)3.18 Script Update Time(T_ScriptUpdateTime)3.19 Script Late Update Time(T_ScriptLateUpdateTime)4. Draw Call(绘制调用)4.1 Opaque DrawCall(CT_OpaqueDrawCall)4.2 Trans DrawCall(CT_TransDrawCall)4.3 Depth Cast ...
来源: Laya3.0_文档 发布时间: 20260128
...** * 在节点上添加2D拖尾渲染器的示例代码 */ export class NewScript extends Laya.Script { declare owner: Laya.Sprite; private _trail2D: Laya.Trail2DRender; //从场景文件中获取到的宽度曲线数据 private _widthCurve: any[]; //从场景文件中获取到的颜色渐变数据 ...
来源: Laya3.0_文档 发布时间: 20251010
...代码: 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
...) #### 1.2、下载安装Node.js Node.js 是一个基础环境,比如TypeScript编译、npm都需要依托于 Node.js。 如果没有安装,直接前往node官网下载安装即可, Node.js 10.x版本下载地址为: https://nodejs.org/download/release/latest-v10.x/ 截止到本篇文档撰...
来源: Laya2.0_文档 发布时间: 20210715
...码如下: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } event1(p1:any, p2:any): void { console.log("event1",p1,p2); } } 在脚本中创建event1的方法和接收两个参数,最后我们来...
来源: Laya3.0_文档 发布时间: 20260128
...用A*作为寻路的方案,首先需要到 https://github.com/bgrins/javascript-astar 官网下载 astar.js 然后把 astar.js 放到项目的bin目录中,并在 index.html 里引入,如下所示 <script type="text/javascript" src="astar.js"></script> 2.2 A*代码中使用 添加...
来源: Laya3.0_文档 发布时间: 20230303
...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_文档 发布时间: 20251010