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

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

911. 用ide打包后的图片,Texture显示不出来? [ 70%]

...、说找不到图片   代码 : Laya.loader.load([{url: "comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); function onLoaded(){     var aa = new Sprite();     Laya.stage.addChild(aa);     var texture = new Laya.Texture();     texture.load('comp/zzw.png' );     setTime...

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

912. laya.d3.physics.RaycastVehicle_API3.0 [ 70%]

...addWheel getNumWheels getWheelInfo btVehicleTuning Legend Class Class with type parameter Constructor Property Method Object literal Variable Function Type alias Enumeration Interface

来源: Laya3.0_api 发布时间: 20231115

913. laya.d3.shader.ShaderVariantCollection_API3.0 [ 70%]

...ompile contatins getByIndex remove Legend Object literal Variable Function Type alias Class Class with type parameter Method Enumeration Interface

来源: Laya3.0_api 发布时间: 20231102

914. laya.ui.Label_API3.0 [ 70%]

...域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 default false 不可穿透,此对象的鼠标响应区域由width、height、hitArea属性决定。 name name: string = "" Inherited from Node.name Defined in laya/...

来源: Laya3.0_api 发布时间: 20231115

915. laya.display.Text [ 70%]

...域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY : Number[read-only] 返回鼠标在此对象坐标系...

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

916. 使用createFrames创建的图集动画。如何单独修改这个缓存动画播放速度 [ 70%]

...的播放速度了!/** * 角色创建 */ public function init(interval,type:String,hp:Number,speed:Number,hitRadius:Number,camp:Number,heroType:Number = 0):void { //初始化属性 this.type = type; this.hp = hp; this.speed = speed; this.hitRadius = hitRadius; this.camp = camp; this.heroType = her...

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

917. http 请求 once 的 回调参数,如何传递和接收? [ 70%]

...调参数,如何传递和接收? once () method  public function once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher使用 EventDispatcher 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知,此侦听事件响应一次后自...

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

918. 在2.0里如何调用在编辑模式下创建的对话框 [ 70%]

...在场景中调用它?  firstDialog.scene的内容如下: { "x":0, "type":"Dialog", "selectedBox":1, "selecteID":3, "props":{"width":640,"sceneColor":"#000000","height":480}, "nodeParent":-1, "label":"Dialog", "isOpen":true, "isDirectory":true, "isAniNode":true, "hasChild":true, "compId":1, "ch...

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

919. 微信小游戏里面使用BitmapFont加载时会报错,处理方式如下: [ 70%]

...*__JS__ */wx.postMessage({url:url,data:tempData,isLoad:"filedata"}); 添加type的判断,不是XML则执行 if (type != "xml") {                     /*__JS__ */wx.postMessage({url:url,data:tempData,isLoad:"filedata"});                 } 附件 : --> js.rar 2018-...

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

920. Material材质使用的哪个Shader为什么不是保存在材质lmat文件里面? [ 70%]

...使用的哪个Shader为什么不是保存在材质lmat文件里面? { "type":"Laya.StandardMaterial", "path":"Assets/ArenaScene/Materials/t0201.lmat" },现在一个材质使用的哪个Shader是作为type保存在使用这个lmat文件的地方,这样设计的目的是什么? 如果我有一...

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