大约有 387 项符合查询结果, 库内数据总量为 30,936 项。 (搜索耗时: 0.0082 秒)
...点击地面时,通过鼠标事件发起获得最短路径的调用: //设置鼠标弹起事件响应 Laya.stage.on(Event.MOUSE_UP, this, function (): void { //起始和目标点 var start = this.graph.grid[this.startPoint.x][this.startPoint.y]; var end = this.graph.grid[this.endPoint.x][this.en...
来源: Laya3.0_文档 发布时间: 20230303
...ityPlugin 功能介绍: Mesh Setting --- 网格设置 Ignore Vertices Tangent 忽略顶点切线信息,可减小lm文件大小 Ignore Vertices Color 忽略顶点颜色信息,可减小lm文件大小 ...
来源: Laya_社区 发布时间: 20170428
...llet extends Laya.Script { constructor() { super(); } onEnable(): void { //设置初始速度 let rig: Laya.RigidBody = this.owner.getComponent(Laya.RigidBody); rig.setVelocity({ x: 0, y: -10 }); } onTriggerEnter(other: any, self: any, contact: any): void { //如果被碰到,则移除子弹 this.o...
来源: Laya3.0_文档 发布时间: 20250103
...aterial.albedoTexture = tex; }) ); box.meshRenderer.material = material; //设置文本显示框位置 this.text.x = Laya.stage.width / 2 - 50; //显示文本显示框 this.text = new Laya.Text(); this.text.overflow = Laya.Text.HIDDEN; this.text.color = "#FFFFFF"; this.text.font = "Impact"; this.tex...
来源: Laya_社区 发布时间: 20200917
...引擎中的1长度单位转换为50个渲染像素。 并且,在项目设置中开放了长度转换比率的设置,开发者可根据项目实际需求,自主进行调整,调整位置如图1所示: (图1) 该设置与原生的Box2D物理引擎以及LayaAir3.1之前的版本有所不同...
来源: Laya3.0_文档 发布时间: 20250310
...量*/ delta: number; /** * 设置事件数据。 * @param type 事件类型。 * @param currentTarget 事件目标触发对象。 * @param target 事件当前冒泡对象。 ...
来源: Laya_社区 发布时间: 20170601
...sprite我在原地画了个圆为什么只有右下区域能点击,明明设置了mouseEnabled=true,设置了size了呢?虽然官方的文档说明里有介绍,真心很多不细看的人压根不知道,也包括我(!嘻嘻) var a: Laya.Sprite = new Laya.Sprite(); a.graphics.drawCircle...
来源: Laya_社区 发布时间: 20161109