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

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

251. laya.ui.UIGroup_API3.0 [ 41%]

...Tab 和 RadioGroup 的基类。 Hierarchy Box UIGroup RadioGroup Tab Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name selectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchor...

来源: Laya3.0_api 发布时间: 20231115

252. laya.display.Stage_API3.0 [ 41%]

...态更改帧率有利于改进手机耗电。 Hierarchy Sprite Stage Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize canvasDegree canvasRotation designHeight designWidth focus hitTestPrior mouseThrough name renderingEnabled screenAdaptationEnabled tag ...

来源: Laya3.0_api 发布时间: 20231115

253. 组件脚本的内置方法 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

... */ private _text: Laya.Text; /**盒子等级 */ private _level: number; constructor() { super(); } //组件被启用后执行 onEnable(): void { this._level = Math.round(Math.random() * 5) + 1; this._text = this.owner.getChildByName("levelTxt") as Laya.Text; this._text.text = this._level + ""; } //...

来源: Laya3.0_文档 发布时间: 20251010

254. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...: number = 20 public curpos: Laya.Vector3; private delatpos: Laya.Vector3; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 * 此方法为虚方法,使用时重写覆盖即可 */ onAwake(): void { this.curpos = new...

来源: Laya3.0_文档 发布时间: 20251010

255. 动画状态机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 38%]

...eInfo.layerindex = layerindex; this.playStateInfo.playState = playstate; } constructor() { super(); } /** * 动画状态开始时执行。 */ onStateEnter(): void { console.log("动画开始播放了"); } /** * 动画状态运行中 * @param normalizeTime 0-1动画播放状态 */ onStateUpdate(norma...

来源: Laya3.0_文档 发布时间: 20251010

256. 网络通信 · LayaAir3文档 · LAYABOX [ 34%]

...功能。我们写个简单的例子来看下用法: class LayaSample { constructor() { //创建HttpRequest对象 let http: Laya.HttpRequest = new Laya.HttpRequest(); //设置超时时间 http.http.timeout = 10000; //发送了一个简单的请求 http.send("resources/data.txt", "", "get", "text")...

来源: Laya3.0_文档 发布时间: 20250104

257. 组件装饰器说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 31%]

...tends Laya.Script { @property({ type: Laya.Sprite3D }) sp3: Laya.Sprite3D; constructor() { super(); } onEnable() { console.log("Game onStart", this.sp3.name); } } 除非有特别的需求,我们并不建议这样做,一方面是因为静态物体更有利于IDE内进行编辑。另一方面是...

来源: Laya3.0_文档 发布时间: 20251010

258. laya.ui.UIGroup [ 31%]

... set strokeColors(value:String):voidSee alsolaya.display.Text.strokeColor()Constructor DetailUIGroup()Constructorpublic function UIGroup(labels:String = null, skin:String = null) 创建一个新的 Group 类实例。 Parameters labels:String (default = null) — 标签集字符串。以逗号做分...

来源: Laya2.0_api 发布时间: 20190513

259. 3D物理系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 31%]

...的3D脚本示例 */ export default class TSDemo extends Laya.Script3D { constructor() { super(); } } 2D脚本与3D脚本不要混用,如果是用IDE创建的脚本模板,需要将继承的2D脚本类(Laya.Script)改为3D脚本类(Laya.Script3D), 添加物理脚本 只有为节点添...

来源: Laya3.0_文档 发布时间: 20251010

260. laya.d3.core.scene.BaseScene [ 29%]

...。treeSizeproperty public var treeSize:Vector3 四/八叉树的尺寸。Constructor DetailBaseScene()Constructorpublic function BaseScene() 创建一个 BaseScene 实例。 Method Detail_renderDebug()method protected function _renderDebug(gl:WebGLContext, state:RenderState):void Parameters gl:WebG...

来源: laya_api 发布时间: 20170422