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

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

911. 扇形遮罩画不全画了一个很奇怪的形状但是矩形的就没问题。显示效果如下:版本号1.7.10 [ 40%]

...mer.PROGRESS_TIMER_TYPE_RECT);                 processTimer.setPosition(0,0);                 processTimer.setReverseDirection(true)                 var percent:Number = 0;                 if( data.totalDuration != 0 && data.totalDuration != -1...

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

912. laya.ui.ProgressBar_API3.0 [ 40%]

...rDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds set_anchorX set_anchorY set_bottom set_dataSource set_he...

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

913. WebSocket发送与接收数据(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 40%]

...;//把接收到的二进制数据读进byte数组便于解析。 this.byte.pos = 0;//设置偏移指针; ////下面开始读取数据,按照服务器传递过来的数据,按照顺序读取 var a:number = this.byte.getByte(); var b:number = this.byte.getInt16(); var c:number = this.byte.getFlo...

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

914. 设置遮罩(JavaScript-LayaAir基础篇(JS)-位图) [ 40%]

...aphics.drawCircle(80,80,50,"#ff0000"); //圆形所在的位置坐标 cMask.pos(120,50); //实现img显示对象的遮罩效果 img.mask = cMask; } })(); ``` 运行效果如图3所示: ![图3](img/3.jpg) (图3) 通过对比代码我们发现,实现遮罩很简单,把创建的显示对象cMa...

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

915. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 40%]

...owser.pixelRatio, Laya.Browser.pixelRatio);         changeActionButton.pos(Laya.stage.width / 2 - changeActionButton.width * Laya.Browser.pixelRatio / 2, Laya.stage.height - 100 * Laya.Browser.pixelRatio);         changeActionButton.on(Laya.Event.CLICK, this, function () {             ...

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

916. 某些机型drawToCanv绘图颜色变深 [ 40%]

...ddle"); _webframe.setAttribute('scrolling', "no"); _webframe.setAttribute('position', "absolute"); _webframe.setAttribute('style', "z-index:100001;position: absolute; left: 0px; top: 0px; background: rgb(0, 0, 0);"); Browser.document.body.appendChild(_webframe); 下面图片左边是正产机型截...

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

917. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 40%]

...seOverHole); this.on(Event.MOUSE_OUT, this, this.__onMouseOutHole); } this.pos(this._objectInfo.templateInfo.x, this._objectInfo.templateInfo.y); } private __onMouseOverHole(event:Event):void { this._body.scale(1.2, 1.2); } private __onMouseOutHole(event:Event):void { this._body.scale(1, 1); }代码...

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

918. Tween 缓动过程有触发回调函数么 [ 40%]

...ar_H 相关问题 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 缓动Tween能用在3D物体或者特效上面吗? 缓动动画SKEW-Y从0到360卡住 关于shader中opengl函数问题 想让一个2D的图形被鼠标点击时缩放一下,或左右摇晃一下,最...

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

919. laya.ui.Image_API3.0 [ 40%]

...vent callLater clearTimer contains customRender destroy destroyChildren dispose drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getS...

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

920. WebSocket发送与接收数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 40%]

...;//把接收到的二进制数据读进byte数组便于解析。 this.byte.pos = 0;//设置偏移指针; ////下面开始读取数据,按照服务器传递过来的数据,按照顺序读取 var a:int = this.byte.getByte(); var b:int = this.byte.getInt16(); var c:Number = this.byte.getFloat32()...

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