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

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

151. laya.ui.Radio_API3.0 [ 48%]

...。 see laya.ui.RadioGroup Hierarchy Button Radio Implements ISelect Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag toggle drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anc...

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

152. laya.ui.Button_API3.0 [ 46%]

...n=laya.ui.Button; import Handler=laya.utils.Handler; class Button_Example{ constructor() { Laya.init(640, 800); Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", laya.utils.Handler.create(this,this.onLoadComplete));//加载资源。 } private ...

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

153. laya.ui.CheckBox_API3.0 [ 46%]

...ya.ui.CheckBox; import Handler=laya.utils.Handler; class CheckBox_Example{ constructor() { Laya.init(640, 800); Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/check.png", Handler.create(this,this.onLoadComplete));//加载资源。 } private onLoadComple...

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

154. vivo小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

... : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgr...

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

155. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...egClass() export class DemoPreviewPlugin extends IEditorEnv.AssetPreview { constructor() { super(); this.sprite.graphics.drawCircle(100, 100, 50, "#ffff00"); this.sprite.size(100, 100); } async setAsset(asset: IEditorEnv.IAssetInfo): Promise<any> { this.renderTarget = this.sprite; } } 显示...

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

156. laya.display.AnimationPlayerBase [ 45%]

...如果继续播发,则会改变播放顺序)。 默认为正序播放。 Constructor DetailAnimationPlayerBase()Constructorpublic function AnimationPlayerBase() 可以继承此类,但不要直接实例化此类,因为有些方法需要由子类实现。 Method DetailaddLabel()method public fun...

来源: laya_api 发布时间: 20170929

157. laya.ani.bone.Skeleton [ 44%]

...能极大提高性能,但是可能某些mesh动画效果会不太正常 Constructor DetailSkeleton()Constructorpublic function Skeleton(templet:Templet = null, aniMode:int = 0) 创建一个Skeleton对象 Parameters templet:Templet (default = null) — 骨骼动画模板  aniMode:int (default = 0)...

来源: laya_api 发布时间: 20170929

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

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

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

159. laya.ui.TextInput_API3.0 [ 42%]

....TextInput; import Handler = laya.utils.Handler; class TextInput_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, this.onLoadComp...

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

160. laya.ui.TextArea_API3.0 [ 41%]

...ui.TextArea; import Handler = laya.utils.Handler; class TextArea_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, this.onLoadComp...

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