大约有 476 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0036 秒)
Laya_社区(251) Laya_示例(61) Laya3.0_api(39) Laya2.0_文档(33) Laya2.0_api(28) Laya2.0_示例(25) laya_api(21) Laya3.0_文档(18)
...mes No Frames QuaternionProperties | Methods | Constants Packagelaya.d3.mathClasspublic class QuaternionInheritanceQuaternion ObjectImplements laya.d3.core.IClone Quaternion 类用于创建四元数。 Public Properties PropertyDefined By w : NumberW轴坐标Quaternion x : NumberX轴坐标...
来源: Laya2.0_api 发布时间: 20190513
...: class TextRender getFontSizeInfo 函数,最后部分 var xoff:int = Math.max( orix - pixelBBX[0], 0); var yoff:int = Math.max( oriy - pixelBBX[1], 0); var bbxw:int = pixelBBX[2] - pixelBBX[0]; var bbxh:int = pixelBBX[3] - pixelBBX[1]+1; 原来没有+1,如果不够可以再加...
来源: Laya_社区 发布时间: 20200108
...类型不会翻译类型,如果是int(1.11)也会报错,需要用Math或parseInt取下整, int.MAX_VALUE也是同理,建议你用Number.MAX_VALUE替代,如果需要取整,就用Math来取整即可! 2017-06-23 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 ...
来源: Laya_社区 发布时间: 20170623
... class TextRender getFontSizeInfo 函数,最后部分 var xoff:int = Math.max( orix - pixelBBX[0], 0); var yoff:int = Math.max( oriy - pixelBBX[1], 0); var bbxw:int = pixelBBX[2] - pixelBBX[0]; var bbxh:int = pixelBBX[3] - pixelBBX[1]+1; 原来没有+1,如果不够可以再加...
来源: Laya_社区 发布时间: 20190802
...这是一个坑,哥教你爬坑的方法: this.tiledMap.moveViewPort(Math.abs(this.tiledMap.x) + offsetX, Math.abs(this.tiledMap.y) + offsetY); 这样就不跳了,是不是很神奇 2017-10-01 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...
来源: Laya_社区 发布时间: 20170824
...let width = 660 let height = 420 this.sp.size(width, height) this.sp.pivot(Math.round(width / 2), Math.round(height / 2)) this.sp.graphics.drawCircle(0, 0, 5, "#000000") this.sp.graphics.drawRect(-this.sp.pivotX, -this.sp.pivotY, width, height, undefined, "#00ff00", 1) this.sp.pos(500, 500) Laya.sta...
来源: Laya_社区 发布时间: 20171230
...的main.max.js出现大小不同 确定项目只引用了 import laya.d3.math.Vector3 和 import laya.d3.math.Vector2 用IDE编译正常 用flashBuilder编译 会编译到d3 没有引用到相关的类..例如laya.d3.animation.AnimationClip laya.d3.animation.AnimationClipParser02 请问这个如何...
来源: Laya_社区 发布时间: 20180920
...hics.IndexBuffer3D; import laya.d3.graphics.VertexBuffer3D; import laya.d3.math.Quaternion; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.ui.Button; import laya.utils.Browser; import lay...
来源: Laya_示例 发布时间: 20250220
...aya.Browser; var WebGL = Laya.WebGL; var starCount = 2500; var sx = 1.0 + (Math.random() / 20); var sy = 1.0 + (Math.random() / 20); var stars = []; var w = Browser.width; var h = Browser.height; var slideX = w / 2; var slideY = h / 2; var speedInfo; (function() { Laya.init(w, h, WebGL); createText(...
来源: Laya_示例 发布时间: 20250220
...,机型判定! if(Browser.onIPhoneX = Browser.onIPhone && (Math.min(Browser.clientHeight,Browser.clientWidth) == 375 && Math.max(Browser.clientHeight,Browser.clientWidth) == 812) )目前是用屏幕比例进行判断的! 15818760256 • 2018-05-08 18:12 @w1114367261:最新...
来源: Laya_社区 发布时间: 20180507