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

大约有 1,133 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0052 秒)

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

... 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_文档 发布时间: 20250214

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

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

1063. 动态加载代码后,总是出现 ProgressBar is not a constructor [ 44%]

...tElementsByTagName('body').item(0); //创建脚本的dom对象实例 var myScript = document.createElement('script'); myScript.src = jspath; //指定脚本路径 myScript.type = "text/javascript"; //指定脚本类型 myScript.defer = defer;//true; //程序下载完后再解析和执行 theHead.appe...

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

1064. LayaAir下如何成功调试matter.js物理引擎Demo? [ 44%]

...对matter.js的用法给出详细操作步骤 步骤一: 1、新建ActionScript项目,将官方matter.js Demo三选其一copy到项目中,并设置好文档类。 2、将物理引擎代码matter.js和matter-RenderLaya.js拷贝到h5目录下,以及该示例所需的相关图片资源(引擎...

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

1065. Swift中接入Native,执行完drawInRect后不执行update了! [ 43%]

...10 2019-05-10 17:10:38.479438+0800 SwiftLayaNative[98971:4069811] Start js scripts/apploader.js 2019-05-10 17:10:38.479618+0800 SwiftLayaNative[98971:4069811] OpenGL ES version [OpenGL ES 3.0 APPLE-17.0.37] 2019-05-10 17:10:38.479792+0800 SwiftLayaNative[98971:4069811] INFO:gles 支持的最大顶...

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

1066. 微信小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...例代码: 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_文档 发布时间: 20250103

1067. 用raycast选取实体,hitresult始终是false [ 43%]

...islooping的false和true的切换 3D物体active从false设置为true后,Script3D的onUpdate会重复执行 问题状态 最新活动: 2019-12-19 14:59 浏览: 1002 关注: 3 人 152*****152 • 2019-12-19 15:07 我打印了outHitResult.succeeded,全是false 陆仁毅 • 2019-12-19 16:00 @152**...

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

1068. 真机环境找不到window---cant find variable: window stack [ 43%]

...请求官方帮助, 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 为什么laya.pathfinding.js里面的Grid,通过Laya.Grid竟然获取不到?有laya.pathfinding.js的使用教程吗?API中没有找到。 设备的几个单例都获取不到 问题状态 最新活动: 2019-0...

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

1069. Cannot read property 'rayCast' of undefined [ 43%]

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

1070. 2.0版本可用的CameraMoveScript.ts [ 43%]

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

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