大约有 1,100 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0072 秒)
Laya_社区(730) Laya3.0_api(83) Laya2.0_api(71) laya_api(66) Laya_示例(41) Laya2.0_示例(39) Laya2.0_文档(36) Laya3.0_文档(34)
...ds | Events Packagelaya.mapClasspublic class MapLayerInheritanceMapLayer Sprite Node EventDispatcher Object 地图支持多层渲染(例如,地表层,植被层,建筑层等) 本类就是层级类 Public Properties Hide Inherited Public Properties Show Inherited Public Properties Propert...
来源: Laya2.0_api 发布时间: 20190513
...fined in laya/display/Node.ts:56 _graphics _graphics: AutoBitmap Overrides Sprite._graphics Defined in laya/ui/Image.ts:98 _ownGraphics _ownGraphics: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/...
来源: Laya3.0_api 发布时间: 20231115
...取有效像素问题 更新: 在 现在有没有办法把一个display.sprite转存成图片 无意间找到了 答案 getimagedata无法直接使用 1 需要先 c= Laya.stage.drawToCanvas(720,1280, 0,0) 2 然后 调用 t = new Trxture(c); t.getPixels(0,0, 720,1280) 希望官方对这种比较...
来源: Laya_社区 发布时间: 20171201
求问sprite放大后,graphics绘制的图像位置偏移 let sprite: Sprite = new Sprite(); let texture: Laya.Texture = Laya.loader.getRes(this.skin_img1); sprite.graphics.drawTexture(texture, 0, 0, texture.width, texture.height); sprite.size(texture.width, texture.height); let x: number = 300; ...
来源: Laya_社区 发布时间: 20170821
...,植被层,建筑层等) 本类就是层级类 author ... Hierarchy Sprite MapLayer Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior layerName mouseThrough name tag tarLayer drawtocanvCtx Accessors _isHeightSet _isWidthSet active acti...
来源: Laya3.0_api 发布时间: 20231115
...oor(){ Floor.__super.call(this); } //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; _proto.init = function(type){ //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } //在地板上面添加物...
来源: Laya_社区 发布时间: 20160728
...", type:number, default:5}*/ public horizontalSpace: number = 5; private sprite: Laya.Sprite; constructor() { super(); this.sprite = new Laya.Sprite(); } drawText(x: number, y: number, w: number, h: number) { console.log(2222); var j = 0;//控制行列 var printNumber = 0;//当前输出字数 var fo...
来源: Laya_社区 发布时间: 20191103
...细代码如下,具体demo已上传附件 package { import laya.display.Sprite; public class CurveDemo { private var ball:Sprite; private var xflag:Boolean; private var v:uint=2; private var d:uint=150; public function CurveDemo() { Laya.init(800,400); ball=new Sprite(); ball.graphics.drawCircle(...
来源: Laya_社区 发布时间: 20160424
...| Events Packagelaya.mediaClasspublic class SoundNodeInheritanceSoundNode Sprite Node EventDispatcher ObjectPublic Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值...
来源: laya_api 发布时间: 20170422
...x,y输出不一致的问题 我有一个自定义的Player类(继承Laya.Sprite),初始化的时候,我给他设置的位置为(0,100)然后添加到了舞台上,后面我在另一个脚本Monster中(也是继承Laya.Sprite)通过使用以下代码获取player的位置时,发...
来源: Laya_社区 发布时间: 20180828