大约有 1,057 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0071 秒)
...下配置:[code]{ "name": "electron-quick-start", "version": "1.0.0", "description": "A minimal Electron application", "main": "main.js", "scripts": { "start": "electron .", "dist": "electron-builder --win --x64", "dist mac": "electron-builder --mac" }, "repository": "https://github.com/electron/e...
来源: Laya_社区 发布时间: 20210126
... 大大大懒猫 • 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
... 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
...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
...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
...对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