大约有 1,557 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0067 秒)
Laya_社区(551) Laya3.0_api(360) Laya2.0_api(247) laya_api(208) Laya2.0_文档(120) Laya3.0_文档(69) Laya2.0_示例(2)
API DocumentationAll Packages | All Classes | Index | Frames No Frames NodeProperties | Methods | Events Packagelaya.displayClasspublic class NodeInheritanceNode EventDispatcher ObjectSubclasses ComponentNode, Sprite Node 类是可放在显示列表中的所有对象的基类。该显示...
来源: laya_api 发布时间: 20170929
....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.ComboBox)。 ComboBox 组件的图像资源示例:  (图1) 设置 ComboBox 的属性 labels 的值为 “label1,label2” 后,显示效果如下: 常态: ...
来源: Laya2.0_文档 发布时间: 20210714
...G_ENDIAN;设置为高位即可。 4.借用下any ts里面类的你会发现classB明明继承了classA或者实现了接口IA,但是你在使用classB做处理使会出现报错,这个时候借用下any吧,如: classA implements IA{ } classB extends classA{ } var items:IA = ; function(item:c...
来源: Laya_社区 发布时间: 20161109
...ternals Only exported Menu Globals "laya/resource/BaseTexture" BaseTexture Class BaseTexture BaseTexture 纹理的父类,抽象类,不允许实例。 Hierarchy Resource BaseTexture NativeRenderTexture2D RenderTexture2D RenderTexture TextureCube Texture2DArray Texture2D VideoTexture Index Constru...
来源: Laya3.0_api 发布时间: 20231115
...itle预制体放到Box下 (动图3-5) 示例代码如下: const { regClass, property } = Laya; @regClass() export class ScriptA extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预...
来源: Laya3.0_文档 发布时间: 20251105
...Loader; import laya.utils.Handler; import ui.EffectAnimationDemoUI; public class Main { public function Main() { //初始化舞台 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //加载图集资源,加载成功后添加到舞台 Laya.loader.load("./res/atlas/ui.atlas"...
来源: Laya2.0_文档 发布时间: 20210715
...rt laya.ui.View; /*[COMPILER OPTIONS:ForcedCompile]*/ public class loading100 extends Box { public function loading100() { var txt:Text = new Text(); //设置文本内容 txt.text = "Hello...
来源: Laya_社区 发布时间: 20170725
...stick } from "./Joystick"; import { Player } from "./Player"; const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { @property({ type: Laya.Sprite }) public player: Laya.Sprite; @property({ type: Laya.Sprite }) public joystick: Laya.Spr...
来源: Laya_社区 发布时间: 20251125
API DocumentationAll Packages | All Classes | Index | Frames No Frames MatrixProperties | Methods Packagelaya.mathsClasspublic class MatrixInheritanceMatrix Object Matrix 类表示一个转换矩阵,它确定如何将点从一个坐标空间映射到另一个坐标空间。 您可以对...
来源: laya_api 发布时间: 20170929
...路径后通过wx.createWorker方法来创建Worker,在适配库中使用class MiniWorkerLoader接口来自定义实现微信小游戏的Worker内容,从而尽可能将Worker的使用接入引擎的统一处理流程,在项目层减少各平台Worker的适配,并且可以扩展到其他小...
来源: Laya3.0_文档 发布时间: 20251010