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

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

271. 关于video [ 66%]

...bGL); Laya.stage.scaleMode = "exactfit"; Laya.stage.alignH = "center"; var Sprite = laya.display.Sprite; var Bg = new Sprite(); Bg.loadImage("../laya/assets/bg_back.png"); Laya.stage.addChild(Bg); Bg.on(Laya.Event.MOUSE_DOWN, this, function(){ // 创建Video元素 var videoElement = Laya.Browser.cre...

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

272. laya.device.media.Video [ 66%]

...| Events Packagelaya.device.mediaClasspublic class VideoInheritanceVideo Sprite Node EventDispatcher Object Video将视频显示到Canvas上。Video可能不会在所有浏览器有效。 关于Video支持的所有事件参见:http://www.w3school.com.cn/tags/html_ref_audio_video_dom.asp。 注意...

来源: Laya2.0_api 发布时间: 20190513

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

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

274. drawcall性能优化,sprite绘制保存为新纹理 [ 66%]

drawcall性能优化,sprite绘制保存为新纹理 我现在场景里面有 30多个sprite,这个sprite由2个图片合成,中间应用了缩放,透明度,遮罩,最后面应用到场景时调用了80多个drawcall,这样对性能的影响就比较明显了。我在论坛上搜索过...

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

275. laya.html.dom.HTMLIframeElement_API3.0 [ 66%]

... = false Inherited from AnimationBase._ownGraphics Defined in laya/display/Sprite.ts:245 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:631 _skinBaseUrl _skinBaseUrl: string Inherited from AnimationBase._skinBaseUrl Defined in laya/display/Sprite.ts:269 如果节点...

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

276. laya.ui.List [ 66%]

...vents Packagelaya.uiClasspublic class ListInheritanceList Box UIComponent Sprite Node EventDispatcher ObjectImplements IRender, IItem List 控件可显示项目列表。默认为垂直方向列表。可通过UI编辑器自定义列表。 Public Properties Hide Inherited Public Properties Show Inher...

来源: Laya2.0_api 发布时间: 20190513

277. sprite.loadImage加载图片怎么设置要显示的x,y坐标和宽高? [ 66%]

sprite.loadImage加载图片怎么设置要显示的x,y坐标和宽高? 代码: import TiledMap = Laya.TiledMap; class GameMain{ private tMap:TiledMap; constructor() { Laya.init(935, 224, Laya.WebGL); this.tMap = new TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage...

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

278. 2D物理-复合碰撞器 [ 66%]

...r.width / 2, posy = Laya.Browser.height / 2; let box = this.box = new Laya.Sprite(); box.size(width + height * 2, width + height * 2); box.pivot(box.width / 2, box.height / 2); box.pos(posx, posy); Laya.Laya.stage.addChild(box); let boxBody = box.addComponent(Laya.RigidBody); let box1Shape = box.add...

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

279. 小游戏导入手机后Sprite.Mask没有正常显示 [ 66%]

小游戏导入手机后Sprite.Mask没有正常显示 在电脑上,微信开发工具里好好的,导入手机里就不行了- -   Laya.loader.load(url, Handler.create(this, function () { var t = Laya.loader.getRes(url) var sp = new Sprite() sp.graphics.drawTexture(t, 0, 0, 80, 80) that.addChi...

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

280. laya.html.dom.HTMLDivElement_API3.0 [ 66%]

...vElement=new HTMLDivElement(); div.innerHTML = "adivspanspan2p"; Hierarchy Sprite HTMLDivElement HTMLIframeElement Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name drawtocanvCtx Accessors active activeInHierarchy alpha ble...

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