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

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

901. 画了一个封闭的曲线,获取鼠标点击处的像素,为何坐标对不上导致拿不到正确位置的Texture? [ 63%]

....mouseX, _view.stage.mouseY); var tex:Texture = new Texture(hc); trace(tex.width + "---" + tex.height + "---" + getPixel(tex)); /*获取所画曲线鼠标点击处的像素,为何坐标对不上? 导致无法拿到正确位置的Texture*/ /*var spr:Sprite = new Sprite(); spr.graphics.drawTexture...

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

902. laya.map.TileAniSprite [ 63%]

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

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

903. Spine适配版(JavaScript-LayaAir基础篇(JS)-动画基础) [ 63%]

...ineSkeleton; private index: number = -1; constructor() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } private startFun(): void { //创建动画模板 this.templet = new SpineTempletBinary(...

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

904. 屏幕适配-屏幕适配 [ 63%]

... var modes = ["noscale", "exactfit", "showall", "noborder", "full", "fixedwidth", "fixedheight"]; //当前适配模式索引 var index = 0; //全局文本信息 var txt; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(1136, 640); //设置适配模式 Laya.stage.scaleMode = "noscale...

来源: Laya_示例 发布时间: 20241001

905. laya.ui.TextInput [ 63%]

...d-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component  editable : Boolean 设置可编辑状态。 TextInput filters : Array滤镜集合。可以设置多个滤镜组合。Sprite  focus : B...

来源: laya_api 发布时间: 20170929

906. 屏幕适配-屏幕适配 [ 63%]

...let modes = ["noscale", "exactfit", "showall", "noborder", "full", "fixedwidth", "fixedheight"], index = 0, txt; class SmartScale_T { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Image = Laya.Image, Text = Laya.Text; ...

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

907. 刚刚接触2天layaair,有几个问题请教。 [ 63%]

...据IDE设置初始化引擎 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height); else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]); Laya["Physics"] && Laya["Physics"].enable(); Laya["DebugPanel"] && Laya["DebugPanel"].enable(); Laya.stage.scaleMode...

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

908. 分享一个虚拟摇杆,比较粗糙,没做优化 [ 63%]

...等于大圆的0.5的宽度(也就是半径) if (r >= this.moveMax.width/2) r = this.moveMax.width/2; var angle = Math.atan2(this.moveY - this.starY, this.moveX - this.starX); bottonX = Math.cos(angle) * r + this.starX+(this.moveMax.x - this.starX); bottonY = Math.sin(angle) * r + this.starY+...

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

909. 微信关系链:LayaAir引擎针对开发数据域使用图集支持介绍 [ 63%]

...rl]; }else if (message['type'] == "resizeShared") { __JS__('sharedCanvas').width = message.data.width; __JS__('sharedCanvas').height = message.data.height; var tempMatrix:Object = message.data.matrix; var matrix:Matrix = new Matrix(); matrix.a = tempMatrix.a; matrix.b = tempMatrix.b; matrix.c = temp...

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

910. laya.particle.Particle2D [ 63%]

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

来源: laya_api 发布时间: 20170929