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

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

291. 2D物理-桥 [ 67%]

...nt1.addComponentIntance(pointRB1); let preBody = pointRB1; let width = 20, height = 2.5; for (let i = 0; i { let targetX = (300 + Math.random() * 400) / Laya.Physics.PIXEL_RATIO, targetY = 500 / Laya.Physics.PIXEL_RATIO; let newBall = new Laya.Sprite(); Laya.Laya.stage.addChild(newBall); let circleB...

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

292. Spine适配版(TypeScript-LayaAir基础篇(TS)-动画基础) [ 67%]

...x: number = -1; constructor() { Laya.init(Laya.Browser.width, Laya.Browser.height,Laya.WebGL); Laya.stage.scaleMode = Laya.Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Laya.Stat.show(); this.startFun(); } private startFun(): void { //创建动画模板 this.templet = Laya.SpineTempletBinary(...

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

293. worker.js 使用问题 [ 67%]

...       /*__JS__ */bitmap=HTMLImage.create(imageData.width,imageData.height,1);             /*__JS__ */bitmap.loadImageSource(imageData);             /*__JS__ */bitmap._setCreateURL(data.url);         } else {             bitmap = new HTMLCanvas(true...

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

294. laya.ui.WXOpenDataViewer_API3.0 [ 66%]

...centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right ro...

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

295. 2D物理-碰撞过滤器 [ 66%]

...00,600,1100,600,1100,200"; } private function createBox(posx, posy, width, height, ratio) { var box = new Sprite(); box.on(Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.addChild(box); box.pos(posx, posy).size(width * ratio, height * ratio); var rigidbody: RigidBody = box.addComponent(RigidBody...

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

296. list 加载动画为什么实现的效果会错乱掉? [ 66%]

... var bounds = ani.getGraphicBounds(); ani.scale(80/bounds.width ,80/bounds.height) this.addChild(ani) } } Laya.class(Item1, "Item1", Box); var List = Laya.List; function setup(effList) { var list = new List(); list.itemRender = Item1; list.repeatX = 3; list.repeatY = 4; list.x = (Laya.stage.width - ...

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

297. laya.map.GridSprite [ 66%]

...口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number 显示对象的高度,单位为像素,默认为0。 此高度用于鼠标碰撞检测,并不影响显示对象图像大小。需要对显示对象的图像进行缩放,请使用scalescaleX、scaleY。...

来源: laya_api 发布时间: 20170929

298. 鼠标交互-鼠标交互 [ 66%]

...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.createInt...

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

299. 报个ui适配的bug [ 66%]

...H = Laya.Stage.ALIGN_CENTER; Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_HEIGHT; Laya.stage.screenMode = Laya.Stage.SCREEN_HORIZONTAL; 哦,对了,我试了几次网页调试,似乎没有这种情况。layaair调试,出现的概率还挺大的。 2018-08-03 添加评论 免费帖 --> 分享...

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

300. 能否对适配方案进行修改 [ 66%]

...idth = Math.round(desginWidth * scaleX);                 canvasHeight = realHeight = Math.round(desginHeight * scaleY);                 var minScale:Number= Math.min(scaleX, scaleY);                 _width=desginWidth/minScale*scaleX;                 _...

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