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

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

51. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 77%]

...t rigid:Laya.RigidBody = panel.addComponent(Laya.RigidBody); rigid.type = 'static'; } 产生的效果是boll1会自由落体,但不会与挡板发生物理碰撞而是直接穿过挡板(如图1),请问要如何修改代码。 图1   附件 : --> 2019-04-28 添加评论 悬赏 --> 分享 微...

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

52. List属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 76%]

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

53. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 76%]

...t rigid:Laya.RigidBody = panel.addComponent(Laya.RigidBody); rigid.type = 'static'; } 产生的效果是boll1会自由落体,但不会与挡板发生物理碰撞而是直接穿过挡板(如图1),请问要如何修改代码。 图1   附件 : --> 2019-04-28 添加评论 免费帖 --> 分享 ...

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

54. 微信小游戏利用开放域好友关系链做排行榜 [ 76%]

...   * @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

55. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 76%]

... [];     private materials:Laya.Material[] = [];      public static instance: CommandBuffer_Outline ;      private isUseOuline: boolean = true; // 控制是否使用描边          public static GetInstance(): CommandBuffer_Outline{         if(this.inst...

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

56. 发布Oppo小游戏屏幕适配bug [ 76%]

...希望有用。 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

57. laya.d3.core.MeshTerrainSprite3D_API3.0 [ 75%]

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

58. ipad 声音管理无法暂停继续播放,只能从头开始,pc端正常,代码如下 [ 75%]

...相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 1987c private static var _useAudioMusic:Boolean = true; /**      * <code>SoundManager</code> 是一个声音管理类。提供了对背景音乐、音效的播放控制方法。      * 引擎默认有两套声音方案...

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

59. Layabox web 复制一段文字到剪贴板 [ 75%]

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

60. 请问怎么把arraybuffer作为图片显示出来 [ 75%]

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