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

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

321. laya.ui.VSlider_API3.0 [ 75%]

...al mouseThrough name showLabel tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy allowClickBack alpha anchorX anchorY bar blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawC...

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

322. 不带格式后缀的图片无法成功加载 [ 74%]

...his, () => { let picTemp = Laya.Loader.getRes(url); console.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 nodee.x = 100 nodee.y = 350 Laya.stage.addChild(nodee) }));上面这个图片无法正常显示,打印 texture ...

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

323. laya.display.Animation_API3.0 [ 74%]

...AP_POSITIVE WRAP_REVERSE drawtocanvCtx framesMap Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY autoPlay blendMode cacheAs components count customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters frames globalRotation globa...

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

324. matter.jsr Render下可以移动视图窗口 用LayaRender则没反应 [ 74%]

...s = render.canvas; var context = render.context; var world = {minX: -globalWidth, maxX: globalWidth, minY: -globalHeight, maxY: globalWidth}; context.setTransform(1,0,0,1,0,0); context.clearRect(0, 0, canvas.width, canvas.height); //Clamp the camera position to the world bounds while centering the c...

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

325. 缓动动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 74%]

...右移运算符,相当于/2 用>>效率更高) var offsetX = Laya.stage.width - w >> 1; //显示的字符串 var demoString = "LayaBox"; var letterText; for(var i = 0,len = demoString.length;i(动图2) 结合实例代码,然后通过图2的运动效果,我们可以看出,文本"Layabox"...

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

326. laya.map.GridSprite [ 74%]

...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite  drawImageNum : int = 0当前GRID包含多少个TILE(包含动画)GridSprite filters : Array滤镜集合...

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

327. laya.map.TileAniSprite [ 74%]

...mouseThrough属性。 影响对象鼠标事件响应区域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY ...

来源: laya_api 发布时间: 20170929

328. 分享一个Shader版的CoolDown实现 [ 74%]

...     vbArray = new Array<number>();                 var texWidth: number = texture.width;                 var texHeight: number = texture.height;                 //定义颜色值,取值范围0~1 浮点。                 const red: number = 1;         ...

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

329. laya.ui.Tab_API3.0 [ 74%]

...ouseThrough name selectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed direction disabled displayHeight displayWidth displayedInStage drawCa...

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

330. 关于要自定shader的同学 [ 74%]

...戏中截屏当前sprite 的绘制 let new_texture = sprite.drawToCanvas(width, height, 0, 0) 这里的 width 和height 指的是当前的sprite在游戏中设置的大小 new_texture = ls.Texture.create(new_texture, 0, 0)   重新获取纹理然后将textureHost设置为new_texture sprite.shaderVa...

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