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

大约有 1,873 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0060 秒)

1011. Config3D_API3.0 [ 63%]

...g3D.ts:67 是否使用BVH裁剪 Methods Static setResolution setResolution(width: number, height: number): void Defined in Config3D.ts:59 设置分辨率大小(并不是实际渲染分辨率) Parameters width: number height: number Returns void Globals "Config3D" Config3D BVH_Min_Build_nums BVH_...

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

1012. laya.ui.TextInput [ 63%]

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

来源: laya_api 发布时间: 20170929

1013. 屏幕适配-屏幕适配 [ 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_示例 发布时间: 20251209

1014. 刚刚接触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

1015. 微信关系链: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

1016. 分享一个虚拟摇杆,比较粗糙,没做优化 [ 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

1017. 屏幕适配-屏幕适配 [ 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_示例 发布时间: 20251209

1018. 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

1019. LayaBox HelloWorld实战 [ 63%]

...nstance = this; } onBtnShowClick(){ var dialog = new Laya.Dialog(); dialog.width=300; dialog.height=600; //var bg = new Laya.Image('comp/img_bg.png'); //dialog.addChild(bg); var button = new Laya.Button('comp/button.png'); button.label='Hello World!'; button.name = Laya.Dialog.CLOSE; button.width=26...

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

1020. 混合模式-Lighter [ 63%]

...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_示例 发布时间: 20251209