大约有 712 项符合查询结果, 库内数据总量为 30,938 项。 (搜索耗时: 0.0060 秒)
Laya_社区(311) Laya3.0_api(93) Laya2.0_api(74) laya_api(62) Laya_示例(55) Laya2.0_示例(55) Laya2.0_文档(42) Laya3.0_文档(20)
...var WebGL = Laya.WebGL; // 一只凤凰的分辨率是550 * 400 var phoenixWidth = 550; var phoenixHeight = 400; var bgColorTweener = new Tween(); var gradientInterval = 2000; var bgColorChannels = { r: 99, g: 0, b: 0xFF }; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(phoenixWid...
来源: Laya_示例 发布时间: 20250316
...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite enableFog : Boolean 获取是否允许雾化。 Scene3D enableLight : Boolean = true 是否启用灯光...
来源: Laya2.0_api 发布时间: 20190513
...下: { "x":0, "type":"Dialog", "selectedBox":1, "selecteID":3, "props":{"width":640,"sceneColor":"#000000","height":480}, "nodeParent":-1, "label":"Dialog", "isOpen":true, "isDirectory":true, "isAniNode":true, "hasChild":true, "compId":1, "child":[ { "x":15, "type":"Image", "props":{"y":0,"x":0,"w...
来源: Laya_社区 发布时间: 20190109
...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite editable : Boolean 设置可编辑状态。 TextInput filters : Array滤镜集合。可以设置多个滤...
来源: Laya2.0_api 发布时间: 20190513
...目开发更高效。const // 一只凤凰的分辨率是550 * 400 phoenixWidth = 500, phoenixHeight = 400, bgColorChannels = { r: 99, g: 0, b: 0xFF }, gradientInterval = 2000; class BlendMode_Lighter { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya...
来源: Laya2.0_示例 发布时间: 20250316
...mouseThrough属性。 影响对象鼠标事件响应区域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY ...
来源: laya_api 发布时间: 20170929
...远 在某个地方使用var pos:Point = img.localToGlobal(new Point(img.width/2, img.height/2));转换坐标 结果是完全正确的。但最近又有地方需要用到 于是写了trace(soil_1.localToGlobal(new Point(soil_1.width/2, soil_1.height/2)));结果与预期相差很远。结果与预期...
来源: Laya_社区 发布时间: 20181219
...owser.window.canvas; var wxhtmlC = canvas.toTempFilePathSync({ x: 0, y: 0, width: canvas.width, height: canvas.height, destWidth: canvas.width, destHeight: canvas.height }) this.ctx.graphics.loadImage(wxhtmlC, 0, 0,this.ctx.width,this.ctx.height); 然后用drawTextture,很多问题都是有这个...
来源: Laya_社区 发布时间: 20191124
...per(this) var dragRegion; showDragRegion(); this.golfBall.x = Laya.stage.width / 2; this.golfBall.y = Laya.stage.height / 2; this.golfBall.on(Event.MOUSE_DOWN, this, onStartDrag) function showDragRegion() { //拖动限制区域 var dragWidthLimit = 350; var dragHeightLimit = 200; dragRegion = ne...
来源: Laya_社区 发布时间: 20180627
...lhjicon_5.png"); img.x = 640; img.y = 320; iconSpr = new Sprite(); iconSpr.width = 1280; iconSpr.height = 640; iconSpr.addChild(img); btn.on(Event.CLICK,this,runGame1); } private function runGame1():void { xNum = Math.random()*7 - 3; yNum = Math.random()*7 - 3; Laya.timer.loop(20,this,onRun); Laya.t...
来源: Laya_社区 发布时间: 20180113