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

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

301. DrawPie例子中无法显示遮罩区域 [ 83%]

...ldc.layabox.com ... Image 输入已下代码并执行: (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Brows...

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

302. laya.display.Sprite.graphics对象的旋转问题 [ 83%]

laya.display.Sprite.graphics对象的旋转问题 我用laya.display.Sprite.graphics对象绘制了一条线,我想让其按线的初始点旋转 ,或者结束点为原点旋转。但是我用了graphics方法下的rotate做旋转是,无法rotate(90,0,0)旋转,设置rotate(90,1,0)...

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

303. 鼠标交互-Hold [ 83%]

...load(apePath, Handler.create(this, this.createApe)); } createApe() { const Sprite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(apePath); let texture = Laya.loader.getRes(apePath); this.ape.pivot(texture.width / 2, texture.height / 2); this.ape.pos(Laya.stage.width /...

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

304. 对象池3D问题 [ 83%]

...ne.lh", Laya.Handler.create(this, function(){     var layaMonkey =Laya.Sprite3D.load("fish/denglongyu/layaScene.lh"); scene.addChild(layaMonkey) layaMonkey.transform.localScale = new Laya.Vector3(0.04,0.04,0.04); layaMonkey.transform.position = new Laya.Vector3(0, 0.5,0); // layaMonkey.transform...

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

305. 绘制图形的BUG [ 83%]

绘制图形的BUG BUG1:package ui.test { import laya.display.Sprite; import laya.utils.Tween; public class MyBox extends Sprite { private var _shape:Sprite; public function MyBox() { super(); graphics.drawRect(0,0,200,200,"#00ff00"); _shape=new Sprite(); _shape.graphics.drawCircle(0,0,20,"#ff0000"...

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

306. 怎么给List下的每个item中的button添加事件? [ 83%]

...新添加的元素始终保持在最底部显示? 关于遍历产生的sprite的点击事件,急,大神帮看哈 Animation如何加点击事件 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined 微信小游戏与加载图片时不会触发erroe...

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

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

求问sprite放大后,graphics绘制的图像位置偏移 let sprite: Sprite = 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; ...

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

308. 显示与切换图片(JavaScript-LayaAir基础篇(JS)-位图) [ 82%]

... > 图片的显示是游戏开发基础,本篇从API到示例分别介绍Sprite.loadImage与Graphics.drawTexture两种显示图片的方法。 ## 1、用loadImage方法显示与切换图片 ### 1.1 loadImage API概述 在API文档中搜索laya.display.Sprite,可以找到loadImage()方法,如...

来源: Laya2.0_文档 发布时间: 20210715

309. Sprite3D的克隆(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 82%]

# Sprite3D的克隆 ###### *version :2.0.1beta Update:2019-4-13* 关于克隆,LayaAir3D中提供了几种接口。比较常用的`clone`和`cloneto`这两种通用的方法就不多做介绍了。这里详细讲解下Sprite3D中特有的克隆接口`instantiate`。 ```typescript public function st...

来源: Laya2.0_文档 发布时间: 20210715

310. 添加了MouseJoint没有效果 [ 82%]

...  let ropePartTexture = Laya.loader.getRes("test/b1.png"); let ropePart : Sprite = new Sprite(); ropePart.texture = ropePartTexture; ropePart.pos(48*vw,10*vh); ropePart.width = 4*vw; ropePart.height = 10*vh; let boxCollider = new laya.physics.BoxCollider(); boxCollider.width = ropePart.width; boxCo...

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