大约有 1,869 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0050 秒)
Laya_社区(616) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya3.0_文档(70) Laya2.0_示例(68)
... * @param alpha (可选)透明度。 */ drawTexture(tex: Texture, x?: number, y?: number, width?: number, height?: number, m?: Matrix, alpha?: number): Array<any>; 我是看drawTexture这么定义 ,里面不是有宽高吗。。。 wq • 2018-02-27 10:47 好吧 我知道了,是偏移...
来源: Laya_社区 发布时间: 20180226
...der3D; ``` 2.子着色器索引 ```typescript public get subShaderIndex(): number; ``` 3.通道索引 ```typescript public get passIndex(): number; ``` 4.宏定义集合 ```typescript public get defineNames(): Readonly ``` 5.判断两个着色器变种是否相等 ```typescript equal(other: ShaderVa...
来源: Laya2.0_文档 发布时间: 20210714
...ass TiledMap_SimpleDemo { private tiledMap: TiledMap; private mLastMouseX: number = 0; private mLastMouseY: number = 0; private mX: number = 0; private mY: number = 0; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.sc...
来源: Laya2.0_示例 发布时间: 20260106
...齐方式,可选值:"left","center","right"。 FillTextCmd x : Number 开始绘制文本的 x 坐标位置(相对于画布)。 FillTextCmd y : Number 开始绘制文本的 y 坐标位置(相对于画布)。 FillTextCmdPublic Methods MethodDefined By recover():void 回收...
来源: Laya2.0_api 发布时间: 20190513
...计Stat hide():void[static] 隐藏性能统计信息。 Stat show(x:Number = 0, y:Number = 0):void[static] 显示性能统计信息。 StatProperty DetailcanvasBitmappropertypublic static var canvasBitmap:int = 0 画布 canvas 使用位图渲染的次数。canvasNormalproperty public static v...
来源: laya_api 发布时间: 20170929
...n = true 是否可以缩放Shape。 PhysicsComponent ccdMotionThreshold : Number 取用于连续碰撞检测(CCD)的速度阈值,当物体移动速度小于该值时不进行CCD检测,防止快速移动物体(例如:子弹)错误的穿过其它物体,0表示禁止。 PhysicsComponent ccdSweptSpher...
来源: Laya2.0_api 发布时间: 20190513
... in laya/components/Component.ts:24 获取所属Node节点。 ratio ratio: number = 1.5 Defined in laya/physics/joint/PulleyJoint.ts:27 [首次设置有效]两刚体移动距离比率 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component....
来源: Laya3.0_api 发布时间: 20231115
...6 线段颜色,或者填充绘图的渐变对象。 lineWidth lineWidth: number = 0 Defined in laya/display/cmd/DrawLinesCmd.ts:30 (可选)线段宽度。 points points: number[] | null Defined in laya/display/cmd/DrawLinesCmd.ts:22 线段的点集合。格式:[x1,y1,x2,y2,x3,y3...]。 x x: nu...
来源: Laya3.0_api 发布时间: 20231115
... Methods Static fillArray fillArray(arr: any[], str: string, type?: typeof Number | typeof String): any[] Defined in laya/ui/UIUtils.ts:19 用字符串填充数组,并返回数组副本。 Parameters arr: any[] 源数组对象。 str: string 用逗号连接的字符串。如"p1,p2,p3,p4"。 Defaul...
来源: Laya3.0_api 发布时间: 20231115
...estViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotat...
来源: Laya_社区 发布时间: 20171113