大约有 175 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0039 秒)
Laya_社区(129) Laya2.0_文档(18) laya_api(7) Laya2.0_示例(7) Laya3.0_文档(6) Laya3.0_api(3) Laya_示例(3) Laya2.0_api(2)
... a.ts ------------------------------ module AM{ export class AC { public static myname:string = "I'm AC!"; } } export default AM; b.ts ---------------------------- module AM{ export class BC { public static myname:string = "I'm BC!"; } } export default AM; c.ts -------------------------- import AM...
来源: Laya_社区 发布时间: 20180926
...; import WebGL = Laya.WebGL; export class Interaction_CustomEvent { public static ROTATE: string = "rotate"; private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.a...
来源: Laya_示例 发布时间: 20250312
...ket服务器”这篇 报1061: 调用可能未定义的方法 bind (通过 static 类型 Function 引用)。错误。怎么解决? 2017-07-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来...
来源: Laya_社区 发布时间: 20170705
... []; private materials:Laya.Material[] = []; public static instance: CommandBuffer_Outline ; private isUseOuline: boolean = true; // 控制是否使用描边 public static GetInstance(): CommandBuffer_Outline{ if(this.inst...
来源: Laya_社区 发布时间: 20210203
静态模型无法动态修改物理属性 在Unity中将模型修改为Static属性,然后在laya中动态设置物体隐藏,虽然物体Mesh隐藏了,但是物理效果还在,碰撞的盒子还在原地,是不是勾选为静态之后无法用代码修改静态物体的物理属性? ...
来源: Laya_社区 发布时间: 20191021
...快捷指令即可。 示例代码如下: "scripts": { "pbjs": "pbjs -t static-module -w commonjs -o ./src/libs/protobuf/protobuf.js ./src/libs/protobuf/protobuf.proto", "pbts": "pbts -o ./src/libs/protobuf/protobuf.d.ts ./src/libs/protobuf/protobuf.js" }, 效果如图1-2所示: pbjs指令参数...
来源: Laya3.0_文档 发布时间: 20250103
...; import WebGL = Laya.WebGL; export class Interaction_CustomEvent { public static ROTATE: string = "rotate"; private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.a...
来源: Laya2.0_示例 发布时间: 20250312
在使用资源版本控制时,URL.formatURL中有个bug public static function formatURL(url:String, base:String = null):String { if (!url) return "null path"; //如果是全路径,直接返回,提高性能 if (url.indexOf(":") > 0) return url; //自定义路径格式化 if (customFormat !=...
来源: Laya_社区 发布时间: 20171213
... a.ts ------------------------------ module AM{ export class AC { public static myname:string = "I'm AC!"; } } export default AM; b.ts ---------------------------- module AM{ export class BC { public static myname:string = "I'm BC!"; } } export default AM; c.ts -------------------------- import AM f...
来源: Laya_社区 发布时间: 20181026
...制,以及获取声音信息。 */ public static function playMusic(url:String, loops:int = 0, complete:Handler = null, startTime:Number = 0):SoundChannel { 你的参数传入是否正确那? 或者能否发一下你出问题部分的代码或者小demo那? 2018-04...
来源: Laya_社区 发布时间: 20180417