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

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

141. laya.d3.core.particleShuriKen.module.shape.BaseShape [ 82%]

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

142. laya.d3.core.particleShuriKen.module.shape.BaseShape [ 82%]

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

143. Button连续点击触发MOUSE_OUT事件问题 [ 82%]

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

144. 照相机-正交相机 [ 82%]

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

145. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 82%]

# 使用百度地图显示当前位置 > 本节一步步演示使用watchPosition()在百度地图上标注出当前所在位置。watchPosition方法来自于Geolocation API,**学习本节前请先阅读Geolocation基础文档或Geolocation API文档。** > 在开始之前需要在index.html中...

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

146. 物理引擎显示旋转问题 [ 82%]

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

147. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 82%]

...属性都将导致图形重绘: ```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

148. 分享水波一个shader [ 82%]

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

149. drawTexture的matrix参数是怎么用的 [ 82%]

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

150. 物理引擎-Slingshot [ 82%]

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