大约有 848 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0066 秒)
Laya_社区(527) Laya3.0_api(65) Laya2.0_api(62) laya_api(57) Laya2.0_示例(44) Laya_示例(41) Laya2.0_文档(30) Laya3.0_文档(22)
...ra.viewportPointToRay 的转换应该统一用viewport的值 见图一 getSprite3DUnderPoint 里判断点击区域得考虑设置视图矩形后viewport.width 变小的问题 见图二 附件 : --> 2024-06-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...
来源: Laya_社区 发布时间: 20240613
...tat.show(); this.setup(); } setup() { const Event = Laya.Event; this.createSprite(); Laya.stage.on(Event.MOUSE_UP, this, this.onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, this.onMouseUp); } createSprite() { const Sprite = Laya.Sprite, Event = Laya.Event; let w = 300, h = 300; this.sp = new Sprit...
来源: Laya2.0_示例 发布时间: 20250220
...设置用户点击事件 function setUserClick(){ var clickRect = new Laya.Sprite(); clickRect.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height-100 ); clickRect.pos( 0, 0 ); clickRect.size( Laya.stage.width, Laya.stage.height-100 ); Laya.stage.addChild( clickRect ); clickRect.on( Laya.Ev...
来源: Laya_社区 发布时间: 20180201
...。 1. 使用getBounds/ getGraphicBounds。 ```javascript var sp=new Laya.Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); var bounds:Laya.Rectangle=sp.getGraphicBounds(); Laya.stage.addChild(sp); ``` getBounds可以满足多数多数需求,但由于其需要计算边界,不适合频繁调...
来源: Laya2.0_文档 发布时间: 20210715
...言、LayaAirIDE让项目开发更高效。var leo; (function (leo) { var Sprite = laya.display.Sprite; var Animation = laya.display.Animation; var Text = laya.display.Text; var Stage = laya.display.Stage; var Browser = laya.utils.Browser; var Stat = laya.utils.Stat; var WebGL = laya.webgl.WebGL; va...
来源: Laya_示例 发布时间: 20250220
...ackagelaya.uiClasspublic class ColorPickerInheritanceColorPicker Component Sprite Node EventDispatcher Object ColorPicker 组件将显示包含多个颜色样本的列表,用户可以从中选择颜色。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties Property...
来源: laya_api 发布时间: 20170929
...n_edit.height, 0, 0); var interceptT:Texture = new Texture(htmlC); var img:Sprite = new Sprite; img.graphics.drawImage(interceptT, 0, 0, btn_edit.width, btn_edit.height); Laya.stage.addChild(img); 如图和代码(一个按钮点击后draw图然后加入stage) 只要添加至stage后,随后...
来源: Laya_社区 发布时间: 20190422
...路径三、地形处理3.1 高度图3.2 网格地形3D精灵 MeshTerrainSprite3D3.3 更新世界矩阵3.4 得到整数的网格索引3.5 得到世界坐标系下的真实坐标3.6 初始化目标点四、角色移动五、最终代码3D寻路 一、概述 本篇将讲解3D场景的寻路问题,...
来源: Laya3.0_文档 发布时间: 20230303
...ckagelaya.uiClasspublic class CheckBoxInheritanceCheckBox Button Component Sprite Node EventDispatcher Object CheckBox 组件显示一个小方框,该方框内可以有选中标记。 CheckBox 组件还可以显示可选的文本标签,默认该标签位于 CheckBox 右侧。 CheckBox 使用 dat...
来源: laya_api 发布时间: 20170929
...kagelaya.uiClasspublic class ColorPickerInheritanceColorPicker UIComponent Sprite Node EventDispatcher Object ColorPicker 组件将显示包含多个颜色样本的列表,用户可以从中选择颜色。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties Property...
来源: Laya2.0_api 发布时间: 20190513