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

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

341. FontClip问题 [ 68%]

...dex])continue ;   texture=this.sources[index];   if (isHorizontal)this.graphics.drawTexture(texture,dX+i *(texture.sourceWidth+this.spaceX),0,texture.sourceWidth,texture.sourceHeight);   else this.graphics.drawTexture(texture,0+dX,i *(texture.sourceHeight+this.spaceY),texture.sourceWidth,textu...

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

342. laya.ui.Image_API3.0 [ 68%]

...rarchy UIComponent Image Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX cente...

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

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

...ya.display.Sprite(); //将上面的texture纹理绘制到bg图像里面 bg.graphics.drawTexture(texture, 0, 0); //将bg添加到舞台 Laya.stage.addChild(bg);  我们再次刷新页面看看有什么效果   嗯 看来图片出来了~~~不错 现在我们可以开始继续了   //===============...

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

344. laya.html.dom.HTMLIframeElement_API3.0 [ 68%]

...ent HTMLIframeElement Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name drawtocanvCtx Accessors active activeInHierarchy alpha blendMode cacheAs components contextHeight contextWidth customRenderEnable destroyed displayHeig...

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

345. laya.ani.swf.MovieClip_API3.0 [ 68%]

...rchy Sprite MovieClip Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize basePath hitTestPrior interval loop mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components...

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

346. 绘制形状时事件不触发 [ 68%]

...ite();     this.sprite.on('mousedown', this, on_down);     this.sprite.graphics.drawCircle(x, y, r2, color2, color2, 2);     this.sprite.graphics.drawCircle(x, y, r1, color1, color1, 0);     function on_down(event) {         console.log("_____ kbRing2\n");     } } function laya_test()...

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

347. 精灵 · LayaAir3.0文档 · LAYABOX [ 68%]

...2D图像。 Sprite 是基本的显示图形的显示列表节点。 通过 graphics 可以绘制图片或者矢量图,支持旋转,缩放,位移等操作。Sprite同时也是容器类,可用来添加多个子节点。Sprite针对不同的情况做了渲染优化,所以保证一个类实现...

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

348. 显示对象skew与scale同时设置时,APP与浏览器显示效果不一致 [ 68%]

...; i++ ) { var spr:Sprite = new Sprite(); spr.x = 30+i*17; spr.y = 300; spr.graphics.drawRect(-10, -40, 20, 80,colors[i%2]); spr.skewX = i * 6; spr.scaleY = 1 / Math.cos(Utils.toRadian(spr.skewX)); Laya.stage.addChild(spr); } for (i = 0; i < 31; i++ ) { var spr:Sprite = new Sprite(); spr.x = 30+i*...

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

349. 鼠标交互-拖动 [ 67%]

...1, dragWidthLimit, dragHeightLimit); //画出拖动限制区域 Laya.stage.graphics.drawRect( dragRegion.x, dragRegion.y, dragRegion.width, dragRegion.height, null, "#FFFFFF", 2); } onStartDrag(e) { //鼠标按下开始拖拽(设置了拖动区域和超界弹回的滑动效果) this.ape.startDrag(dr...

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

350. laya.html.dom.HTMLDivElement_API3.0 [ 67%]

...ent HTMLIframeElement Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name drawtocanvCtx Accessors active activeInHierarchy alpha blendMode cacheAs components contextHeight contextWidth customRenderEnable destroyed displayHeig...

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