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

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

51. laya.map.MapLayer [ 91%]

...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

52. laya.ui.Image_API3.0 [ 90%]

...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

53. getimagedata直接调用无法获取有效像素问题 [ 90%]

...取有效像素问题 更新: 在 现在有没有办法把一个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

54. 求问sprite放大后,graphics绘制的图像位置偏移 [ 90%]

求问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

55. laya.map.MapLayer_API3.0 [ 90%]

...,植被层,建筑层等) 本类就是层级类 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

56. 【简单跑酷--JS版】---Lv.3 添加地板 [ 90%]

...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

57. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 90%]

...", 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

58. 分享:LayaAir实现曲线运动 [ 90%]

...细代码如下,具体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

59. laya.media.SoundNode [ 90%]

...| 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

60. 物体的x,y输出不一致的问题 [ 90%]

...x,y输出不一致的问题 我有一个自定义的Player类(继承Laya.Sprite),初始化的时候,我给他设置的位置为(0,100)然后添加到了舞台上,后面我在另一个脚本Monster中(也是继承Laya.Sprite)通过使用以下代码获取player的位置时,发...

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