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

大约有 562 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0076 秒)

121. [LayaAir3]Laya3.x graphics.drawCurves 闪烁的问题 [ 80%]

...th % 2 !== 0) { throw new Error("At least two points (four numbers) are required, and the total number of values must be even"); } this.points = points; } private static distance(x1: number, y1: number, x2: number, y2: number): number { let dx = x2-x1; let dy = y2-y1; return Math.sqrt(dx*dx+dy*dy); ...

来源: Laya_社区 发布时间: 20241008

122. UI-ProgressBar [ 80%]

...CALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(["../../res/ui/progressBar.png", "../../res/ui/progressBar$bar.png"], Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { progressBar = new ProgressBar("../../res/ui/progressBar.png"); progressBar.width = 400; progre...

来源: Laya_示例 发布时间: 20260303

123. laya.ui.ViewStack [ 80%]

...| Frames No Frames ViewStackProperties | Methods | Events Packagelaya.uiClasspublic class ViewStackInheritanceViewStack Box Component Sprite Node EventDispatcher ObjectImplements IItem ViewStack 类用于视图堆栈类,用于视图的显示等设置处理。 Public Properties Hide Inherited P...

来源: laya_api 发布时间: 20170929

124. UI-ProgressBar [ 80%]

...TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class UI_ProgressBar { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage....

来源: Laya2.0_示例 发布时间: 20260303

125. laya.ui.CheckBox [ 80%]

... | Frames No Frames CheckBoxProperties | Methods | Events Packagelaya.uiClasspublic class CheckBoxInheritanceCheckBox Button Component Sprite Node EventDispatcher Object CheckBox 组件显示一个小方框,该方框内可以有选中标记。 CheckBox 组件还可以显示可选的文本标...

来源: laya_api 发布时间: 20170929

126. layabox能不能由xml生成节点 [ 79%]

...找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: zsytssk   这个可以实现,air下的xml是使用的原生js下的XMLDom,具体使用方式可以直接遵循js下XMLDom的用法 2016-12-01 1 3 分享 微博 QZONE 微信 zsytssk 赞同来自: t...

来源: Laya_社区 发布时间: 20161201

127. laya.ui.VSlider [ 79%]

...x | Frames No Frames VSliderProperties | Methods | Events Packagelaya.uiClasspublic class VSliderInheritanceVSlider Slider Component Sprite Node EventDispatcher Object 使用 VSlider 控件,用户可以通过在滑块轨道的终点之间移动滑块来选择值。 VSlider 控件采用垂直...

来源: laya_api 发布时间: 20170929

128. 飞机大战地图滚动报错,麻烦看下? [ 79%]

...找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自:   2016-07-21 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 loserDog 相关问题 请问laya有没有地图编辑器工具? ide 2.4 lay...

来源: Laya_社区 发布时间: 20160721

129. 关于射线碰撞的问题,对于射线的罗辑方式不太了解,懂得进来帮忙看一下!~~~~~~~~~~ [ 79%]

...邀请: 与内容相关的链接 提交 3 个回复 ltmking 赞同来自: cuixueying 问题解决了,实现了角色的高度随地形高低起伏而改变,分享一下 //创建一条射线 ray2 = new Ray(new Vector3(0,0,0),new Vector3(0,-10,0)); //创建碰撞信息 rayCastHit2 =new RaycastHit(...

来源: Laya_社区 发布时间: 20170828

130. laya.ui.VBox [ 79%]

...es No Frames VBoxProperties | Methods | Events | Constants Packagelaya.uiClasspublic class VBoxInheritanceVBox LayoutBox Box Component Sprite Node EventDispatcher Object VBox 是一个垂直布局容器类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties Pr...

来源: laya_api 发布时间: 20170929