大约有 1,709 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0057 秒)
Laya_社区(1284) Laya3.0_api(178) Laya2.0_文档(87) laya_api(60) Laya2.0_api(40) Laya3.0_文档(33) Laya_示例(24) Laya2.0_示例(3)
...。 BaseShape cloneTo(destObject:*):void 克隆。 BaseShape generatePositionAndDirection(position:Vector3, direction:Vector3, rand:Rand = null, randomSeeds:Uint32Array = null):void 用于生成粒子初始位置和方向。 BaseShapeProperty Detailenablepropertypublic var enable:Boolean是否...
来源: laya_api 发布时间: 20170929
...。 BaseShape cloneTo(destObject:*):void 克隆。 BaseShape generatePositionAndDirection(position:Vector3, direction:Vector3, rand:Rand = null, randomSeeds:Uint32Array = null):void 用于生成粒子初始位置和方向。 BaseShapeProperty Detailenablepropertypublic var enable:Boolean是否...
来源: Laya2.0_api 发布时间: 20190513
...===================================== button width: 155, height: 155 mouse position, x: 374, y: 835 event type: click button width: 155, height: 155 mouse position, x: 374, y: 835 event type: mouseout button width: 155, height: 155 mouse position, x: 374, y: 835 event type: click button width: 155, ...
来源: Laya_社区 发布时间: 20180724
...nvertScreenCoordToOrthographicCoord(pos, _translate); layaMonkey.transform.position = _translate; Laya.stage.on(Laya.Event.RESIZE, null, function() { camera.convertScreenCoordToOrthographicCoord(pos, _translate); layaMonkey.transform.position = _translate; }); }); class OrthographicCamera { private ...
来源: Laya_示例 发布时间: 20250221
# 使用百度地图显示当前位置 > 本节一步步演示使用watchPosition()在百度地图上标注出当前所在位置。watchPosition方法来自于Geolocation API,**学习本节前请先阅读Geolocation基础文档或Geolocation API文档。** > 在开始之前需要在index.html中...
来源: Laya2.0_文档 发布时间: 20210715
...ow.LayaRender; var Common = Matter.Common; var Composite = Matter.Composite; var Composites = Matter.Composites; var Bounds = Matter.Bounds; var Events = Matter.Events; var Grid = Matter.Grid; var Vector = Matter.Vector; var Bo...
来源: Laya_社区 发布时间: 20180323
...属性都将导致图形重绘: ```typescript var rotation=0, scale=1, position=0; private function setRotation(value):void { this.rotation=value; update(); } private function setScale(value):void { this.scale = value; update(); } private function setPosition(value):void { this.position = value; u...
来源: Laya2.0_文档 发布时间: 20210714
..."u_Time"); constructor() { super(); var vs:string = ` attribute vec4 a_Position; attribute vec2 a_Textcoord; attribute vec3 a_Normal; uniform mat4 u_WorldMat; uniform mat4 u_MvpMatrix; varying vec2 v_textcoord; varying vec3 v_normal; varying vec4 v_wpos; void main() { v_textcoord = a_Textc...
来源: Laya_社区 发布时间: 20190923
...forEach((idxOnSource, idxOnTilemap) => { if (!idxOnSource) return const position = tilemap.getTilePositionByIndex(idxOnTilemap) const tileTexture = getTexture(idxOnSource) const matrix = matrices[(tileRotates && tileRotates[idxOnTilemap]) || 0] this.graphics.drawTexture(tileTexture, posit...
来源: Laya_社区 发布时间: 20180720
...nder: { lineWidth: 5, strokeStyle: '#dfa417' } }); var pyramid = Matter.Composites.pyramid(500, 300, 9, 10, 0, 0, function(x, y, column) { var texture = column % 2 === 0 ? '../../res/physics/img/block.png' : '../../res/physics/img/block-2.png'; return Matter.Bodies.rectangle(x, y, 25, 40, { render: ...
来源: Laya_示例 发布时间: 20250221