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

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

111. 纹理集包含多个动作的时候按照技术文档写出来的不能正常播放呢? [ 49%]

...+ "000");     Laya.stage.addChild(roleAni);     roleAni.interval = 120;     //播放指定的某一个动作,如果用这行代码就不对了,播放不出来任何东西     roleAni.play(0, true, stand + "000");     //播放所有动作,如果用这一行代码就没问题...

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

112. LayaAir开发笔记(1)五十音图连连看 [ 49%]

...index]); card[index].name = index; card[index].graphics.drawRect(0, 0, 80, 120, null, "#000000", 2); card[index].graphics.loadImage("linkgame_card.jpg"); card[index].size(80, 120); card[index].pos(10 + 100 * i, 130 + 140 * j); card[index].on(Laya.Event.CLICK, this, function(e) { if (gameStatue == tr...

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

113. 使用Laya.URL.basePath后,拼接的UI就加载不了一些本地图片了,wxlocal文件夹要怎么用? [ 49%]

...• 2018-06-25 11:56 @Laya_Aaron:为什么Laya.URL.basePath = "http://120.79.208.141:9090/H5/”;直接用ip的就可以从服务器下载资源,但是微信小游戏要支持https。就改成了Laya.URL.basePath = "https://shyx1.lefou666.com/H5/"; 然后就不能下载了,报...

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

114. laya.d3.core.particleshuriken.module.FrameOverTime_API3.0 [ 49%]

...eOverTime Defined in laya/d3/core/particleShuriKen/module/FrameOverTime.ts:120 创建一个 FrameOverTime,不允许new,请使用静态创建函数。 实例。 Returns FrameOverTime Accessors constant get constant(): number Defined in laya/d3/core/particleShuriKen/module/FrameOverTime.ts:83 固定...

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

115. 给图片节点添加新创建的图片,会报这个错:node._setParent is not a function [ 49%]

...mgLove); console.log("imgSrc === "+ imgSrc); //imgLove.pos(iRows*this._x + 120 , iColumns*this._y + 320); this.imageBg.addChild(imgLove); } }TypeError: node._setParent is not a function preload.js:55     at Image.__proto.addChild (file:///E:/laya/myLaya/myZootopia/bin/libs/laya.core.js:20925:9)  ...

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

116. 关于graphics镂空的问题https://ask.layabox.com/question/139 [ 49%]

...:Sprite = new Sprite(); guideContainer.autoSize = true; guideContainer.pos(120,150); guideContainer.cacheAs = "bitmap"; guideContainer.alpha = 0.5; Laya.stage.addChild(guideContainer); guideContainer.on("click",this,function(){ trace("click guideContainer"); }); guideContainer.on("mouseover",this,fu...

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

117. 通过AnimatorState为Animator添加多个播放状态islooping属性会被覆盖 [ 48%]

...imator); let all = 486; let arr = ["3,21,run,true", "29,59,wolk,true", "70,120,cheer,true", "125,380,dance,true", "393,440,forerake,false", "443,485,backward,true"]; let state: Laya.AnimatorState; console.log("getANi"); for (let i = 0; i < arr.length; i++) { let arrString = arr[i].split(","); // ...

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

118. laya.d3.physics.shape.StaticPlaneColliderShape_API3.0 [ 48%]

...mpoundColliderShape.type Defined in laya/d3/physics/shape/ColliderShape.ts:120 碰撞类型。 Returns number Methods clone clone(): any Overrides ColliderShape.clone Defined in laya/d3/physics/shape/StaticPlaneColliderShape.ts:42 inheritdoc override Returns any cloneTo cloneTo(destObject: any): voi...

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

119. 关于位图字体的valign属性问题 [ 48%]

...我提过多次,但应该还没有解决。 text=new Text(); text.size(120,80); text.font="位图字体名"; text.piovtY=text.height>>1; text.align = "center"; text.valign= "middle"; text.borderColor="#ffffff"; 上下中心不对称,左右是对的,如图   附件 : --> 2016-11-16 添...

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

120. ScrollRect设置会引起其他的UI资源无法正在显示 [ 47%]

...; 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 arr:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Mat...

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