• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 175 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0039 秒)

131. 动画混合问题,Avatar动画混合报错. [ 54%]

...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

132. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

...。 二、使用引擎的请求方法 XMLHttpRequest(XHR)是一个 JavaScript 对象,它提供了一种在浏览器中以异步方式发送 HTTP(或 HTTPS)请求并处理服务器响应的机制。例如,获取远程资源、提交表单数据、发送JSON数据等。 在LayaAir引擎中...

来源: Laya3.0_文档 发布时间: 20251010

133. 2D方向光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

... 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

134. Laya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText [ 53%]

... 大大大懒猫 • 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

135. 抖音小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...例如下: 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

136. LayaAir IDE 1.4.0新增功能 附加(扩展)脚本的使用 [ 52%]

LayaAir IDE 1.4.0新增功能 附加(扩展)脚本的使用 .script和.prop脚本结合IDE在代码层的使用方式 2016-10-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: SONIC3D...

来源: Laya_社区 发布时间: 20161014

137. 引用外部脚本的方式 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

...一路回车。 package name:项目名字; version: 版本号; description: 对项目的描述; entry point: 项目的入口文件; test command:项目启动的时候要用什么命令来执行脚本文件; git repository:如果要将项目上传到git中的话,那么就需...

来源: Laya3.0_文档 发布时间: 20251010

138. Cannot read property 'rayCast' of undefined [ 52%]

...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

139. 2.0版本可用的CameraMoveScript.ts [ 52%]

2.0版本可用的CameraMoveScript.ts 引擎源码:点这里仅仅给找不到这个文件,或者使用这个文件无效果的小伙伴,还原一个2.0,跟示例里效果一样的文件:   /** * ... * @author */ export class CameraMoveScript extends Laya.Script {      /** @private ...

来源: Laya_社区 发布时间: 20200707

140. 支付宝小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

...例如下: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake()...

来源: Laya3.0_文档 发布时间: 20251010