大约有 568 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0064 秒)
Laya_社区(298) Laya3.0_api(62) Laya2.0_api(58) laya_api(54) Laya2.0_示例(31) Laya_示例(30) Laya2.0_文档(22) Laya3.0_文档(13)
...| 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
求问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
drawcall性能优化,sprite绘制保存为新纹理 我现在场景里面有 30多个sprite,这个sprite由2个图片合成,中间应用了缩放,透明度,遮罩,最后面应用到场景时调用了80多个drawcall,这样对性能的影响就比较明显了。我在论坛上搜索过...
来源: Laya_社区 发布时间: 20170102
... = 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
...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
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
小游戏导入手机后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
...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_示例 发布时间: 20240930
...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
获取sprite对象的 width和height为0 /** * 船 */ class Boat extends Laya.Sprite { private bt:Laya.Sprite; constructor() { super() this.bt = new Laya.Sprite() this.bt.loadImage("res/boat.png") this.addChild(this.bt) } } /** * 游戏背景 */ class BackGround extends Laya.Sprite { //背景图 ...
来源: Laya_社区 发布时间: 20160804