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

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

401. laya.map.MapLayer_API3.0 [ 82%]

... _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加载相关的皮肤,但放在不同域,这里可以设置 Optional _url _url: string Inherited...

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

402. 求问sprite放大后,graphics绘制的图像位置偏移 [ 82%]

... new Sprite(); let texture: Laya.Texture = Laya.loader.getRes(this.skin_img1); sprite.graphics.drawTexture(texture, 0, 0, texture.width, texture.height); sprite.size(texture.width, texture.height); let x: number = 300; let y: number = 100; let scaleRatio: number = 1.3; sprite.pos(x, y); // sprite.gr...

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

403. laya.d3.core.particleshuriken.module.GradientVelocity_API3.0 [ 82%]

...locity Defined in laya/d3/core/particleShuriKen/module/GradientVelocity.ts:176 创建一个 GradientVelocity,不允许new,请使用静态创建函数。 实例。 Returns GradientVelocity Accessors constant get constant(): Vector3 Defined in laya/d3/core/particleShuriKen/module/GradientVelocity.ts...

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

404. Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 [ 82%]

Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 this.loadHp(); Laya.timer.frameLoop(1, this, this.aaa); private bb:number = 6; private playerHB:logic.UI.role.PlayerHealthBar; private loadHp():void { this.playerHB = new logic.UI.role.PlayerHealthBar(); this.playerHB.pivotX ...

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

405. 引擎示例中的新手引导自己写了一次,不知道为什么无法实现点击。 [ 82%]

...知道为什么无法实现点击。 (function() { var guideSteps = [ { x: 151, y: 575, radius: 150, tip: "../../res/guide/help6.png", tipx: 200, tipy: 250 }, { x: 883, y: 620, radius: 100, tip: "../../res/guide/help4.png", tipx: 730, tipy: 380 }, { x: 1128, y: 583, radius: 110, tip: "../../res/guid...

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

406. laya.display.Sprite_API3.0 [ 82%]

...一个 Sprite 类的实例对象 sprite 。 shape.graphics.drawRect(0, 0, 100, 100, "#ccff00", "#ff0000", 2);//绘制一个有边框的填充矩形。 shape.x = 400;//设置 shape 对象相对于父容器的水平方向坐标值。 shape.y = 200;//设置 shape 对象相对于父容器的垂直方向...

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

407. 绘画圆角矩形的工具,直接用,不用自己去算 [ 82%]

...:borderWidth }; return graghics.drawPath(x, y, paths, brush, pen); } } } 2019-01-17 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 liwenhua 赞同来自: 这个好, 2019-01-17 0 0 分享 微博 QZONE 微信 hamletb...

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

408. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 82%]

... * 背景类 * */ function Background(){ //图片的宽度 this.BG_WIDTH = 1600; //记录当前移动的值 this.moveX = 0; //定义背景1 this.bg1 = null; //定义背景2 this.bg2 = null; //草堆 this.grass = null; Background.__super.call(this); this.init(); } //Background 是一个显示对象 ...

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

409. drawToTexture 绘制函数不工作呢 [ 82%]

..._rect.x = 0;         top_rect.y = 0;         top_rect.size(100, 100);         top_rect.graphics.drawRect(0, 0, 100, 100, "#0000FF", "#000000", 1);          Laya.stage.addChild(top_rect);          let rect_bottom: Laya.Sprite = new Laya.Sprite();       ...

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

410. laya的hitTestPoint没有第三个参数吗,只检测到矩形碰撞?惨了我as3人物的精确碰撞都靠第三个参数 怎么改装成h5? [ 82%]

... (true) 的实际像素,还是检查边框 (false) 的实际像素。 2017-11-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ymsdandan 赞同来自: 我们API中没有第三个参数,因为像素级的碰...

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