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

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

521. laya.display.Sprite [ 55%]

...节点。 Sprite 默认没有宽高,默认不接受鼠标事件。通过 graphics 可以绘制图片或者矢量图,支持旋转,缩放,位移等操作。Sprite同时也是容器类,可用来添加多个子节点。 注意: Sprite 默认没有宽高,可以通过getBounds函数获取;...

来源: laya_api 发布时间: 20170929

522. TS setExternalLinkEx問題 [ 55%]

...Input的fontSize問題 TimeLine.to 問題 畫環形倒計時,一個關於Graphics的問題 編輯模式下的問題 scrollBar autoHide 問題 LayaNative 使用setExternalLinkEx打开WebView 如何设置背景颜色是透明的 使用ScrollRect捲動物理世界,貼圖錯位問題 问题状态 ...

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

523. laya.display.Stage_API3.0 [ 55%]

...ierarchy Sprite Stage Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize canvasDegree canvasRotation designHeight designWidth focus hitTestPrior mouseThrough name renderingEnabled screenAdaptationEnabled tag useRetinalCanvas ALIGN_BOTTOM ALIGN_CENTER ALIG...

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

524. 在Canvas模式下 drawTexture出错 [ 54%]

...teFromTexture(texture,0,0,texture.sourceWidth/2,texture.height/2); IconSpr.graphics.drawTexture(temp,0,0,temp.sourceWidth,temp.height); temp.destroy(true); } 这样 一样会报错 熊猫大侠 • 2018-01-19 09:24 他销毁纹理 是销毁的 我的temp 还是把最初的texture 或者 直接 全...

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

525. drawTexture时,Matrix对象,a=-1,无法实现水平翻转 [ 54%]

...();     matrix.a = -1;     matrix.tx = 2*100+ t.width;     ape.graphics.drawTexture(t,100,100,t.width,t.height,matrix);     Laya.stage.addChild(ape);     ape.pos(0, 0);    }));   设置new一个Matrix 然后设置水平偏移量tx 将屏幕外的图像移回舞台   2017-02...

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

526. laya.ui.ScrollBar_API3.0 [ 54%]

...VScrollBar HScrollBar Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoHide autoSize bottomMoveLimit changeHandler disableDrag downButton elasticBackTime elasticDistance hitTestPrior isLockedFun mouseThrough name rollRatio scaleBar slider stopMoveLimit tag t...

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

527. laya2.0做微信小游戏排行榜功能时报错 [ 54%]

...waysChange = true;//小游戏使用,非常费,每帧刷新 rankSprite2.graphics.drawTexture(rankTexture, 0, 0, rankTexture.width, rankTexture.height); Laya.stage.addChild(rankSprite2); });   希望官方可以给个微信小游戏排行榜2.0的demo 附件 : --> 2019-01-15 添加评论 免费...

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

528. 分包项目, 加载js时报错 [ 54%]

...                var v:View = new View();             v.graphics.drawCircle(50, 50, 100, "#000000");             v.pos(100, 100);             this.addChild(v);         }     } }   然后, 报错就在Box上: Uncaught TypeError: Cannot read property ...

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

529. 分享:LayaAir实现曲线运动 [ 54%]

... public function CurveDemo() { Laya.init(800,400); ball=new Sprite(); ball.graphics.drawCircle(0,0,50,"#FF00FF"); Laya.stage.addChild(ball); ball.x=275; ball.y=200; Laya.timer.frameLoop(1,this,onFrame); } private function onFrame():void { // TODO Auto Generated method stub if (ball.x>540||ball.x&...

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

530. 如何获取animation的node节点? [ 54%]

...options.srcName].frames[i].res].h, ); // 从大切片切出小切片 skill.graphics.drawTexture(textureIns,aniProps.mc[options.srcName].frames[i].x,aniProps.mc[options.srcName].frames[i].y); // 将小切片渲染到临时精灵上 skillAniArray[i] = skill._graphics._one; // 储存渲染后的小切...

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