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

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

261. laya.ui.Tab [ 64%]

...e(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而...

来源: laya_api 发布时间: 20170929

262. 3d粒子只要勾了looping,每次播放完开始下一次循环的时候都会闪烁一下 [ 64%]

...icalSize = 10; camera.clearFlag = Laya.BaseCamera.CLEARFLAG_DEPTHONLY; var pos = new Laya.Vector3(300, 500, 0); var translate = new Laya.Vector3(0, 0, 0); Laya.Sprite3D.load("res/LayaScene_gamescene/Conventional/chest01.lh", Laya.Handler.create(this, function(sp:Laya.Sprite3D):void { conso...

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

263. 鼠标交互-双指缩放(多点触控) [ 64%]

...w, h, "#FF7F50"); this.sp.size(w, h); this.sp.pivot(w / 2, h / 2); this.sp.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.sp.on(Event.MOUSE_DOWN, this, this.onMouseDown); } onMouseDown(e) { const Event = Laya.Event; // 手机上才有 touches 属性 let touches = e.touches; if (touches && to...

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

264. Sprite-新手引导 [ 64%]

...Container.graphics.clear(); tipContainer.loadImage(step.tip); tipContainer.pos(step.tipx, step.tipy); } } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import HitArea = Laya.HitArea; import WebGL = Laya.WebGL; export class Sprite_Guide { private red:Sprite; private guide...

来源: Laya_示例 发布时间: 20251130

265. laya.ui.RadioGroup [ 63%]

...e(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而...

来源: laya_api 发布时间: 20170929

266. 计时器-延迟执行 [ 63%]

...button2 =this. createButton("点我60帧之后 alpha - 0.5"); this.button2.pos(this.button1.x, this.button1.y + vGap); this.button2.on(Event.CLICK, this, this.onDecreaseAlpha2); } createButton(label) { const Sprite = Laya.Sprite; let w = 300, h = 60; let button = new Sprite(); Laya.stage.addChild(bu...

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

267. laya.ui.VScrollBar [ 63%]

...e(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而...

来源: laya_api 发布时间: 20170929

268. Sprite-新手引导 [ 63%]

...Container.graphics.clear(); tipContainer.loadImage(step.tip); tipContainer.pos(step.tipx, step.tipy); } } new Sprite_Guide();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import HitArea = Laya.HitArea; import WebGL = Laya.WebGL; export class Sprite_Guide { private red:Sprite;...

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

269. laya.utils.Byte [ 63%]

...据从头截断为要设置的长度存入新的内存空间中。 Byte  pos : int 移动或返回 Byte 对象的读写指针的当前位置(以字节为单位)。下一次调用读取方法时将在此位置开始读取,或者下一次调用写入方法时将在此位置开始写入。 Byte...

来源: laya_api 发布时间: 20170929

270. laya.ui.HScrollBar [ 63%]

...e(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而...

来源: laya_api 发布时间: 20170929