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

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

2741. laya.d3.math.CollisionUtils [ 40%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames CollisionUtilsMethods Packagelaya.d3.mathClasspublic class CollisionUtilsInheritanceCollisionUtils Object Collision 类用于检测碰撞。 Public Methods  MethodDefined By  CollisionUtils() 创建一个 Collision 实...

来源: Laya2.0_api 发布时间: 20190513

2742. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 40%]

...s.outHitInfo.distance 一直等于-1?  -------------------------------- class RoleControlScript extends Laya.Script{ /*角色模型*/ public roleModel:Laya.Sprite3D; /*角色动画组件*/ public roleAni:Laya.Animator; /*角色当前动作*/ public currentAction:string = "stand"; /*角色动画...

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

2743. Laya.Pool用法 [ 40%]

...r :Terry        * Created: 2017-08-07 09:44:25      */     export class ProtoPool {         private static _dic: Laya.Dictionary;         public static PROTO_HEAD: string = "proto_Head";         public static PROTO_BINARY_REQUEST: string = "proto_BinaryRequest";         publ...

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

2744. 分享:Laya开发TS项目使用pomelo客户端SDK(pomelo-jsclient-websocket) [ 40%]

...就几个函数,自行扩展另说,拿我自己的先抛个砖declare class PomeloClient { init(params:any, cb?:Function); request(route:string, msg?:any, cb?:Function); notify(route:string, params:any); on(event:string, cb:Function); off(event:string, cb:Function); disconnect(); } 我也是初...

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

2745. 微信环境下面Laya.Browser.window.protobuf.load不能读取本地的proto文件 [ 40%]

...  at Function.eof (http://127.0.0.1:53462/game/code.js:93141:69)     at Class (http://127.0.0.1:53462/game/code.js:93649:37)     at Type.get (http://127.0.0.1:53462/game/code.js:98613:48)     at Type.create (http://127.0.0.1:53462/game/code.js:98776:20)     at onAssetsLoaded (http://127.0.0...

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

2746. laya.display.Graphics [ 40%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames GraphicsProperties | Methods Packagelaya.displayClasspublic class GraphicsInheritanceGraphics Object Graphics 类用于创建绘图显示对象。Graphics可以同时绘制多个位图或者矢量图,还可以结合sav...

来源: Laya2.0_api 发布时间: 20190513

2747. 物理引擎,我按照官方例子做的,不知道那里写错了,总是报这个错,大神帮我看下 [ 40%]

...play.Sprite; import laya.renders.Render; import laya.utils.Browser; public class Retitution extends Sprite { private const stageWidth:int = 800; private const stageHeight:int = 600; private var Matter:Object = Browser.window.Matter; private var LayaRender:Object = Browser.window.LayaRender; private ...

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

2748. 路径显示会添加DrawCall,每增加一条路径都会添加,有什么办法降DrawCall [ 39%]

...t laya.utils.Handler; import ui.TestDialogUI; import ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var _path2:Sprite = new Sprite(); private var arr:Array = ; private var ...

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

2749. 抖音小游戏 · LayaAir3.4 · 引擎文档 · LAYABOX [ 39%]

...,方法与web发布略有不同,加载代码示例如下: 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

2750. laya.media.SoundNode [ 39%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames SoundNodeProperties | Methods | Events Packagelaya.mediaClasspublic class SoundNodeInheritanceSoundNode Sprite Node EventDispatcher ObjectPublic Properties Hide Inherited Public Properties Show Inherited Public Properti...

来源: laya_api 发布时间: 20170422