大约有 1,017 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0086 秒)
Laya_社区(720) Laya3.0_api(64) Laya2.0_api(59) laya_api(56) Laya2.0_文档(43) Laya2.0_示例(32) Laya_示例(32) Laya3.0_文档(11)
... Uncaught TypeError: tex.once is not a function at Graphics.__proto.drawTexture (laya.core.js:1438) at onloaded (laya.core.js:1737) at Graphics.__proto.loadImage (laya.core.js:1733) at Function.Animation.createFrames (laya.core.js:182...
来源: Laya_社区 发布时间: 20171015
为什么显示不了 var sp = new Laya.Sprite(); sp.graphics.drawRect(this.mouse_x, this.mouse_y, 10, 10, "#ff0000"); //var htmlC:Laya.HTMLCanvas = sp.drawToCanvas(375,440,0,0).getCanvas().toDataURL(); var htmlCanvas:Laya.HTMLCanvas = sp.drawToCanvas(375,440,0,0); var texture:Laya.Texture = new La...
来源: Laya_社区 发布时间: 20180412
...IComponent Clip FontClip Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY autoPlay blendMode bottom cacheAs cent...
来源: Laya3.0_api 发布时间: 20231115
...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
...th/4) },1500,Ease.sineOut); var bl:Number=texture.width/texture.height ape.graphics.drawTexture(texture,0,0,stageWidth/4,stageWidth/4/bl); apesCtn.addChild(ape); } } 这种方法HBox布局不管用,是不是不能用graphics.drawTexture方法,如果用addChild方法加载Loader.getRes(picAy[i])...
来源: Laya_社区 发布时间: 20161026
... texture:Texture=Loader.getRes('logo.png'); var sp:Sprite=new Sprite(); sp.graphics.clear();//把上次的绘制清除 sp.graphics.drawTexture(texture); Laya.stage.addChild(sp); } 2017-05-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人...
来源: Laya_社区 发布时间: 20170505
...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
...自: 你这是项目问题,需要自己来解决的哦! 你可以使用graphics随便画一个什么形状都行啊! 2018-04-19 0 0 分享 微博 QZONE 微信 hepengwei 赞同来自: 1.给Label设个背景色,bgColor属性 2.到组件的2D文件夹中拖一个Sprite作为Label的子节点,...
来源: Laya_社区 发布时间: 20180419
...导航网格。未勾选时,该节点会被完全忽略。 Bake From: Graphics是从Sprite的图形数据生成导航网格。例如图2-12所示, (图2-12) Physics是从物理碰撞器数据生成导航网格。例如图2-13所示, (图2-13) MeshRender是从网格数据生成导航...
来源: Laya3.0_文档 发布时间: 20251010
...试试下面的例子 代码如下: var spr:Sprite = new Sprite(); spr.graphics.drawCircle(0,0,100,"#ff0000"); spr.mask = new Sprite(); Laya.stage.frameLoop(1, null, drawMask); var index:int = 0; function drawMask():void { index++; if(index > 72) index = index-72; var angle:int = index*5; spr.m...
来源: Laya_社区 发布时间: 20180502