大约有 1,100 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)
Laya_社区(730) Laya3.0_api(83) Laya2.0_api(71) laya_api(66) Laya_示例(41) Laya2.0_示例(39) Laya2.0_文档(36) Laya3.0_文档(34)
...储的 X 轴坐标值。 当设置此值时,如果此对象有绑定的 Sprite 对象,则改变 Sprite 对象的属性 x 的值。 HTMLChar y : Number 此对象存储的 Y 轴坐标值。 当设置此值时,如果此对象有绑定的 Sprite 对象,则改变 Sprite 对象的属性 y 的...
来源: laya_api 发布时间: 20170422
...a.stage.removeChild(food); foods.splice(i, 1); } } } produceFood() { const Sprite = Laya.Sprite; // 最多五个食物同屏 if (foods.length == 5) return; let food = new Sprite(); Laya.stage.addChild(food); foods.push(food); const foodSize = 40; food.size(foodSize, foodSize); food.graphics.drawRect...
来源: Laya2.0_示例 发布时间: 20251130
在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? (function(){ // 配置数据 var data = configJSON; // 目标等级 var target = { "tower":{"level":1}, "aeroboat":{"level":1}, "mountain":{"level":1}, "statue":{"level":1}, "angel":{"level":1} }; var towerLel = target.to...
来源: Laya_社区 发布时间: 20170720
... null; return this; } _calculateCacheRect(sprite, tCacheType, x, y) { var _cacheStyle = sprite._cacheStyle; if (!_cacheStyle.cacheRect) _cacheStyle.cacheRect = Rectangle.create(); var tRec;...
来源: Laya_社区 发布时间: 20210615
....layabox.com/question/8302, , 1,用startDrag来滑动, 我想通过sprite的x属性改变时来助理其它层的移动。然而sprite的x属性改变没有办法获取到; 2,想定义一个sprite来重写它的x属性(并在哪里处理其它层的移动),然而重写属性x不知...
来源: Laya_社区 发布时间: 20171030
...c/Protected All Inherited Externals Only exported Menu Globals "laya/utils/SpriteUtils" SpriteUtils Class SpriteUtils Hierarchy SpriteUtils Index Methods fitDOMElementInArea getGlobalPosAndScale getTransformRelativeToWindow Methods Static fitDOMElementInArea fitDOMElementInArea(dom: any, coordinateS...
来源: Laya3.0_api 发布时间: 20231115
...后的函数。 Utils fitDOMElementInArea(dom:Object, coordinateSpace:Sprite, x:Number, y:Number, width:Number, height:Number):void[static] 使DOM元素使用舞台内的某块区域内。 Utils getGID():int[static] 获取一个全局唯一ID。Utils getGlobalPosAndScale(sprite:Sprite):Rect...
来源: laya_api 发布时间: 20170929
...ya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { const Sprite = Laya.Sprite, Tween = Laya.Tween; let terminalX = 200; let characterA = this.createCharacter("res/cartoonCharacters/1.png"); characterA.pivot(46.5, 50); characterA.y = 100; let characterB = this.createCharacter("res/c...
来源: Laya2.0_示例 发布时间: 20251130
...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Browser = Laya.Browser; var Tween = Laya.Tween; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeig...
来源: Laya_示例 发布时间: 20251130
...后的函数。 Utils fitDOMElementInArea(dom:Object, coordinateSpace:Sprite, x:Number, y:Number, width:Number, height:Number):void[static] 使DOM元素使用舞台内的某块区域内。 Utils getGID():int[static] 获取一个全局唯一ID。Utils getGlobalPosAndScale(sprite:Sprite):Rect...
来源: Laya2.0_api 发布时间: 20190513