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

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

561. 想用camera做一个类似照相机的功能 [ 74%]

...   this.imgSp.cacheAs = "bitmap";             Laya.stage.addChild(this.imgSp);             this.imgSp.graphics.drawTexture(rtex); 2020-06-02 0 0 分享 微博 QZONE 微信 熊猫大侠 赞同来自: 有做过类似功能的同学吗 2020-05-29 0 0 分享 微博 QZONE 微...

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

562. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 74%]

...Page.graphics.drawRect(0,0,300,300,"#ffcccc"); //添加到stage Laya.stage.addChild(bgPage); //实例化MonkeyPageUI页面 var monkeyPage:MonkeyPageUI = new MonkeyPageUI(); //为了能够清楚的看到这个页面所在的位置,在此设置设置一个背景色 monkeyPage.graphics.drawRect(0,0,3...

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

563. Sprite-根据数据绘制路径 [ 74%]

...entagram(); } drawPentagram() { let canvas = new Laya.Sprite(); Laya.stage.addChild(canvas); let path = []; path.push(0, -130); path.push(33, -33); path.push(137, -30); path.push(55, 32); path.push(85, 130); path.push(0, 73); path.push(-85, 130); path.push(-55, 32); path.push(-137, -30); path.push(-...

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

564. graphics使用matrix的异常情况 [ 74%]

... ape.graphics.drawTexture(t, 0, 0); ape.graphics.scale(1.01, 1) Laya.stage.addChild(ape); ape.pos(200, 0); })); 上面这段代码并没有得到图片缩放的效果,看到的现象是图片一直在往左移动 2017-06-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

565. 2.0label不改变文本内容,label颜色无法直接改变,1.0可以 [ 74%]

...        this.label.zOrder=9980             Laya.stage.addChild(this.label);             this.label.visible = false;             this.OpenLabel();         }         private OpenLabel() {             this.label.visible = true;  ...

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

566. 学习官方视频教程中飞机大战游戏出现的问题!! [ 74%]

...     //把实例化好的飞机添加进容器内             this.addChild(this.playAnim);             this.playAnim.on(Laya.Event.COMPLETE,this,this.onPlayComplete);         } onMouseMove():void{         //根据鼠标位移主角方法         this.hero.pos(Laya.stage.mo...

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

567. 示例 骨骼动画换装 加不上点击事件 [ 74%]

... = mStartX; mArmature.y = mStartY; //mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); //mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName(mSkinList[0]); play(); //changeSkin(...

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

568. 分享:Skeleton下Event.LABLE('label')事件的使用 [ 74%]

....x = mStartX; mArmature.y = mStartY; mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); play(); } private function onEvent(e:*):void { var tEventData:EventData = e as EventData; Laya.stage.addChild(...

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

569. 文本-自动换行 [ 74%]

... } createText() { const Text = Laya.Text; var txt = new Text(); Laya.stage.addChild(txt); txt.text = "Layabox是HTML5引擎技术提供商与优秀的游戏发行商,面向AS/JS/TS开发者提供HTML5开发技术方案!"; txt.width = 300; txt.fontSize = 40; txt.color = "#ffffff"; // 设置文本...

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

570. http无响应 [ 74%]

...则进入会员列表 var mblv = new BriefView(); mblv.init(); Laya.stage.addChild(mblv); //销毁自身 //this.removeSelf(); this.destroy(); */ connect(); } } //忘记密码 LoginView.prototype.onLableWjmm = function () { this.dlgs = new TanChuang(); this.dlgs.init(); this.dlgs.setContext("请联...

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