大约有 192 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0047 秒)
...t rigid:Laya.RigidBody = panel.addComponent(Laya.RigidBody); rigid.type = 'static'; } 产生的效果是boll1会自由落体,但不会与挡板发生物理碰撞而是直接穿过挡板(如图1),请问要如何修改代码。 图1 附件 : --> 2019-04-28 添加评论 悬赏 --> 分享 微...
来源: Laya_社区 发布时间: 20190428
...Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID: number = 373; public static HEI: number = 85; private img: Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Image(); this.addChild(this.img); } public setImg(src: string): void { this.i...
来源: Laya2.0_文档 发布时间: 20210715
...t rigid:Laya.RigidBody = panel.addComponent(Laya.RigidBody); rigid.type = 'static'; } 产生的效果是boll1会自由落体,但不会与挡板发生物理碰撞而是直接穿过挡板(如图1),请问要如何修改代码。 图1 附件 : --> 2019-04-28 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20190428
... * @param caller * @param callback */ public static wxPostMessage(message:any,caller:any,callback:Function):void{ let wx = Laya.Browser.window.wx; if(wx != undefined){ let openDataContext = wx.getOpenDataContext();...
来源: Laya_社区 发布时间: 20180529
... []; private materials:Laya.Material[] = []; public static instance: CommandBuffer_Outline ; private isUseOuline: boolean = true; // 控制是否使用描边 public static GetInstance(): CommandBuffer_Outline{ if(this.inst...
来源: Laya_社区 发布时间: 20210203
...希望有用。 Laya.stage.on(Laya.Event.RESIZE, this, this.resize); static resize(): void { // let w = this.config.width; // let h = this.config.height; // let screen_wh_scale = Laya.Browser.clientWidth / Laya.Browser.clientHeight; // if (Laya.stage.scaleMode == Laya.Stage.SCALE_FIXED_WIDTH) ...
来源: Laya_社区 发布时间: 20200520
...nherited from Node.name Defined in laya/display/Node.ts:61 节点名称。 Static LIGHTMAP LIGHTMAP: number Inherited from PixelLineSprite3D.LIGHTMAP Defined in laya/d3/core/RenderableSprite3D.ts:23 着色器变量名,光照贴图。 Static LIGHTMAPSCALEOFFSET LIGHTMAPSCALEOFFSET: number Inherited...
来源: Laya3.0_api 发布时间: 20231102
...相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 1987c private static var _useAudioMusic:Boolean = true; /** * <code>SoundManager</code> 是一个声音管理类。提供了对背景音乐、音效的播放控制方法。 * 引擎默认有两套声音方案...
来源: Laya_社区 发布时间: 20190919
...ram isAlertMsgInfo 需要提示的具体内容 * */ public static copy(str: string ,isAlertMsgId?:number ,isAlertMsgInfo?:string): boolean{ let re: boolean; try { let input = document.createElement("input"); input.value = st...
来源: Laya_社区 发布时间: 20181214
...a.Event.ERROR, this, this.errorHandler); xhr.send("https://ask.layabox.com/static ... ot%3B, "", "get", "arraybuffer"); private completeHandler(data: ArrayBuffer) { //请问怎么把这个arraybuffer作为图片显示出来 } 2018-10-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20181010