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

大约有 1,738 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0090 秒)

701. 关于纹理的显示问题 [ 70%]

...用设置成true    sprite.graphics.drawTexture(texture, 0, 0,texture.width,texture.height); this.addChild(sprite);  }      LayaUISample.max.js:19468 Uncaught TypeError: Cannot read property 'width' of undefined     at Texture.moveUV (LayaUISample.max.js:19468)     at GraphicsGL.__proto....

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

702. laya.display.Sprite [ 70%]

...ad-only] 对象的显示高度(以像素为单位)。 Sprite  displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite  drawCallOptimize : BooleanSprite  filters : Array滤镜集合。可以设置多个滤镜组合。Sprite  globalRotation : Number[read-on...

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

703. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 70%]

...() { /** * 背景类 * */ function Background(){ //图片的宽度 this.BG_WIDTH = 1600; //记录当前移动的值 this.moveX = 0; //定义背景1 this.bg1 = null; //定义背景2 this.bg2 = null; //草堆 this.grass = null; Background.__super.call(this); this.init(); } //Background 是一个显示...

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

704. laya.media.VideoTexture_API3.0 [ 70%]

...preload readyState referenceCount seekable seeking source videoHeight videoWidth volume width wrapModeU wrapModeV wrapModeW cpuMemory gpuMemory Methods _addReference _clearReference _getSource _removeReference _setCPUMemory _setCreateURL _setGPUMemory canPlayType destroy event gpuCompressFormat hasL...

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

705. laya.display.Sprite_API3.0 [ 70%]

...0;//设置 shape 对象相对于父容器的垂直方向坐标值。 shape.width = 100;//设置 shape 对象的宽度。 shape.height = 100;//设置 shape 对象的高度。 shape.pivotX = 50;//设置 shape 对象的水平方法轴心点坐标。 shape.pivotY = 50;//设置 shape 对象的垂直方...

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

706. laya.display.AnimationBase_API3.0 [ 70%]

...INGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components count customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalSc...

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

707. Layabox IDE 在debug模式下 UI.view 只显示部分画面 [ 70%]

...,我是layabox小白,最近在用IDE做一个简单的页面,我将width和height分别设为1280x720,然后 “F5运行调试”,但画面只能显示左边的页面, 请问如何设置才能可以显示全部的页面 ? 2018-02-13 添加评论 免费帖 --> 分享 微博 QZONE 微信...

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

708. 用LayaAir引擎解析Tiled Map地图(TypeScript-2D进阶篇(TS)-扩展模块) [ 70%]

...ap:Laya.TiledMap; constructor() { //初始化舞台 Laya.init(Laya.Browser.width,Laya.Browser.height,Laya.WebGL); //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(); //创建TiledMap地图 this.tMap.create...

来源: Laya2.0_文档 发布时间: 20210715

709. 我自己绘制的矩形如何以自身中心点旋转不能实现啊 [ 70%]

...; public class HelloLaya { public function HelloLaya() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,300,"#000fff"); Laya.stage.addChild(sp); sp.size(200,300); sp.pivot(sp.width/2,sp.height/2); sp.pos(200,200)...

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

710. 鼠标交互-键盘交互 [ 70%]

...Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } set...

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