大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0144 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
...} private function onSkinLoadComplete(e:*=null):void { var dialog:Dialog = new Dialog(); var bg:Image = new Image(assets[0]); dialog.addChild(bg); var button:Button = new Button(assets[1]); button.name = Dialog.CLOSE; button.pos(DIALOG_WIDTH - CLOSE_BTN_WIDTH - CLOSE_BTN_PADDING, CLOSE_BTN_PADDING);...
来源: Laya_社区 发布时间: 20170706
... property 'btCollisionObject' of undefined IDE1.7.8 json图集加载问题 new Laya.Sprite();绘制图形以后,怎么删除释放资源? Animation 的createFrames 使用已经加载的图集缓存动画失败 编辑了图片 执行代码说加载不出来资源 这个是怎么回事? 请问...
来源: Laya_社区 发布时间: 20180327
...s,this.loadComp)); } private loadComp():void{ var parent:ui.ParentViewUI = new ui.ParentViewUI(); Laya.stage.addChild(parent); //当注释掉设置rotaion的代码则没有问题,否则会导致显示异常,其他child消失 parent.child_1.rotation = Math.random() * 180; } } class ChildView extend...
来源: Laya_社区 发布时间: 20170829
....onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.addEventListener("loadedmetadata",()=>{ var videoTexture:Laya.VideoTexture = new Laya.VideoTexture(); videoT...
来源: Laya_社区 发布时间: 20240305
...ya.Handler.create(this,this.onLoded)); //加载图片 this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里我们采用小端 this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //建立连接 this.socket.conn...
来源: Laya_社区 发布时间: 20180210
...create(this, onAssetsLoaded)); function onAssetsLoaded(){ var bitmapFont = new Laya.BitmapFont(); bitmapFont.loadFont("res/fontWord.fnt"); //必出错 } 只要使用 Laya.Loader.FONT 必出错 难道是要改成 Laya.Loader.XML ? 2017-03-29 添加评论 免费帖 --> 分享 微博 QZO...
来源: Laya_社区 发布时间: 20170329
...模型。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))); box.transform.rotate(new Vector3(0, 45, 0), false, false); //创建材质 var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya....
来源: Laya2.0_文档 发布时间: 20210714
... //加载3D场景 //var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; Laya.Scene3D.load("res/LayaScene_terrain/Conventional/terrain.ls",Laya.Handler.create(this,function(scene:Laya.Scene3D){ Laya.stage.addChild(scene) as Laya.Scene3D; console.log("加载3D场...
来源: Laya_社区 发布时间: 20190426
...rties collider hitFraction normal point succeeded Constructors constructor new CannonHitResult(): CannonHitResult Defined in laya/d3/physicsCannon/CannonHitResult.ts:17 创建一个 HitResult 实例。 Returns CannonHitResult Properties collider collider: CannonPhysicsComponent = null Defined in lay...
来源: Laya3.0_api 发布时间: 20231102
...rties collider hitFraction normal point succeeded Constructors constructor new HitResult(): HitResult Defined in laya/d3/physics/HitResult.ts:17 创建一个 HitResult 实例。 Returns HitResult Properties collider collider: PhysicsComponent = null Defined in laya/d3/physics/HitResult.ts:11 发生...
来源: Laya3.0_api 发布时间: 20231115