大约有 712 项符合查询结果, 库内数据总量为 30,936 项。 (搜索耗时: 0.0071 秒)
Laya_社区(311) Laya3.0_api(93) Laya2.0_api(74) laya_api(62) Laya_示例(55) Laya2.0_示例(55) Laya2.0_文档(42) Laya3.0_文档(20)
...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
...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
...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
...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
...右移运算符,相当于/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
...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite drawImageNum : int = 0当前GRID包含多少个TILE(包含动画)GridSprite filters : Array滤镜集合...
来源: Laya2.0_api 发布时间: 20190513
...mouseThrough属性。 影响对象鼠标事件响应区域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY ...
来源: laya_api 发布时间: 20170929
... vbArray = new Array<number>(); var texWidth: number = texture.width; var texHeight: number = texture.height; //定义颜色值,取值范围0~1 浮点。 const red: number = 1; ...
来源: Laya_社区 发布时间: 20170606
...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
...戏中截屏当前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