大约有 1,052 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0057 秒)
...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
...对matter.js的用法给出详细操作步骤 步骤一: 1、新建ActionScript项目,将官方matter.js Demo三选其一copy到项目中,并设置好文档类。 2、将物理引擎代码matter.js和matter-RenderLaya.js拷贝到h5目录下,以及该示例所需的相关图片资源(引擎...
来源: Laya_社区 发布时间: 20160514
... // alert(4); } // var __proto=yfqian.prototype; // __class(yfqian,'yfqian_script'); yfqian.getUrl=function(name){ var reg = new RegExp("(^|\\?|&)"+ name +"=([^&]*)(\\s|&|$)", "i"); if (reg.test(location.href)) return unescape(RegExp.$2.replace(/\+/g, " ")); return ""; } return yfqian; }...
来源: Laya_社区 发布时间: 20190313
...例代码: 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
...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
...请求官方帮助, 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 为什么laya.pathfinding.js里面的Grid,通过Laya.Grid竟然获取不到?有laya.pathfinding.js的使用教程吗?API中没有找到。 设备的几个单例都获取不到 问题状态 最新活动: 2019-0...
来源: Laya_社区 发布时间: 20181215
...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
...始上下滑动了 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 请问下loader如何强制加载一个文件,避免浏览器的缓存 laya.d3.utils.Utils3D的convert3DCoordTo2DScreenCoord这个接口api描述是不是错了? 用Mac下Unity5.6.2f1导出的模型在Mac浏览...
来源: Laya_社区 发布时间: 20171129
...lass, property } = Laya; @regClass() export class SpriteLight extends Laya.Script { @property({type: Laya.Sprite}) private spriteLight: Laya.Sprite; @property({type: Laya.Sprite}) private directLight: Laya.Sprite; @property({type: Laya.Sprite}) private background: Laya.Sprite; //组件被启用后...
来源: Laya3.0_文档 发布时间: 20251010