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

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

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

1082. 动态加载代码后,总是出现 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

1083. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 44%]

...roperty } = Laya; @regClass() export default class iceMonster extends Laya.Script { declare owner: Laya.Sprite; /** 用于兜底的 Animator2D(可选) */ private _animator: Laya.Animator2D; /** 承载 .mc 的动画播放器 */ private iceMonsterAni: Laya.Animation; /** 资源前缀 */ private re...

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

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

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

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

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

1086. 微信小游戏 · LayaAir3.4 · 引擎文档 · 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_文档 发布时间: 20251010

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

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

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

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

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

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

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

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