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

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

741. dialog的lock属性没出现 [ 80%]

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

742. 关于资源加载的问题 [ 80%]

... property 'btCollisionObject' of undefined IDE1.7.8 json图集加载问题 new Laya.Sprite();绘制图形以后,怎么删除释放资源? Animation 的createFrames 使用已经加载的图集缓存动画失败 编辑了图片 执行代码说加载不出来资源 这个是怎么回事? 请问...

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

743. webgl 下当对象子显示对象存在panel且panel有子集时,旋转此显示对象会导致此显示对象的同级对象消失!(1.7.10beta) [ 80%]

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

744. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 80%]

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

745. socket.sent [ 80%]

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

746. 是不BMFONT不支持多类型资源加载方式? [ 80%]

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

747. 创建材质(TypeScript-3D基础(TS)-LayaAir3D之Material材质) [ 80%]

...模型。 ```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

748. 3Ddemo加载Unity导出场景报错resou._removeReference is not a function [ 80%]

...     //加载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

749. laya.d3.physicscannon.CannonHitResult_API3.0 [ 80%]

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

750. laya.d3.physics.HitResult_API3.0 [ 80%]

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