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

大约有 1,380 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0049 秒)

21. hitArea怎么用 [ 95%]

...g 赞同来自: var sprite:Sprite = new Sprite(); sprite.graphics.drawRect(100,100,100,100,"#ff9900"); var hitarea:HitArea = new HitArea(); var graphics:Graphics = new Graphics(); graphics.drawRect(100,100,100,100,"#ff9900"); hitarea.hit = graphics; sprite.hitArea = hitarea;   让你的hitArea=一...

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

22. 鼠标交互-修正交互区域 [ 95%]

...ar deepSkyblueRect = new Sprite(); deepSkyblueRect.graphics.drawRect(0, 0, 100, 100, "#00BFFF"); //设置名称 deepSkyblueRect.name = "天蓝色矩形"; //设置宽高(要接收鼠标事件必须设置宽高,否则不会被命中) deepSkyblueRect.size(100, 100); deepSkyblueRect.pos(10, 10); L...

来源: Laya_示例 发布时间: 20240930

23. 在 list 的 box(render) 中添加 HTMLDivElemnt 组件 导致 IDE 卡死崩溃 IDE版本:2.12.0 [ 94%]

...             "searchKey":"List",             "props":{"width":"100","height":"100"},             "nodeParent":2,             "label":"List",             "isOpen":true,             "isDirectory":true,             "isAniNode":true,             "hasChild"...

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

24. 鼠标交互-修正交互区域 [ 94%]

...et deepSkyblueRect = new Sprite(); deepSkyblueRect.graphics.drawRect(0, 0, 100, 100, "#00BFFF"); //设置名称 deepSkyblueRect.name = "天蓝色矩形"; //设置宽高(要接收鼠标事件必须设置宽高,否则不会被命中) deepSkyblueRect.size(100, 100); deepSkyblueRect.pos(10, 10); L...

来源: Laya2.0_示例 发布时间: 20240930

25. 透明区域点击问题 [ 94%]

...码的写法: var sprite:Sprite = new Sprite(); sprite.graphics.drawRect(100,100,100,100,"#ff9900"); var hitarea:HitArea = new HitArea(); var graphics:Graphics = new Graphics(); graphics.drawRect(100,100,100,100,"#ff9900"); hitarea.hit = graphics; sprite.hitArea = hitarea; 2017-04-28 0 0 分享 ...

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

26. 请教sprite的hitArea怎么设置 [ 94%]

...017-02-22 17:13 var sprite:Sprite = new Sprite(); sprite.graphics.drawRect(100,100,100,100,"#ff9900"); var hitarea:HitArea = new HitArea(); var graphics:Graphics = new Graphics(); graphics.drawRect(100,100,100,100,"#ff9900"); hitarea.hit = graphics; sprite.hitArea = hitarea; qq97...

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

27. Laya.util.Ease这个类是用来配合Tween的,可是怎么使用?没有任何资料啊。 [ 94%]

...,放到tween的第4个参数即可,譬如如下 var ease:*=Ease.backIn(100,100,100,100); Tween.to(sp,{x:400},1000,ease,Handler.create(this,onTween)); 2017-01-05 0 0 分享 微博 QZONE 微信 shaotianhk 赞同来自: var ease:*=Ease.backIn(100,100,100,100); 这句是什么鬼,放在js里直接...

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

28. 能通过不规则热区来实现物体的碰撞检测吗? [ 94%]

...m/question/1261 var sprite:Sprite = new Sprite(); sprite.graphics.drawRect(100,100,100,100,"#ff9900"); var hitarea:HitArea = new HitArea(); var graphics:Graphics = new Graphics(); graphics.drawRect(100,100,100,100,"#ff9900"); hitarea.hit = graphics; sprite.hitArea = hitarea; 2017-07-01 0 1 分享 ...

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

29. 安卓app加载场景错误 [ 94%]

...会报如下错误,不知道是怎么回事?  alert=http://192.167.0.100/h5/layawe ... 6756: TypeError: Cannot read property 'createTexture' of null var glTexture=this._source=gl.createTexture(); ^ TypeError: Cannot read property 'createTexture' of null at Texture2D.__proto._createWebGlTexture ...

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

30. 缓动 · LayaAir3.0文档 · LAYABOX [ 94%]

...改属性值的对象)。 * @param props 变化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 * @param duration 花费的时间,单位毫秒。 * @param ease 缓动类型,默认为匀速运动。 * @param com...

来源: Laya3.0_文档 发布时间: 20230726