大约有 2,482 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0069 秒)
Laya_社区(720) Laya3.0_api(672) Laya2.0_api(367) laya_api(298) Laya_示例(150) Laya2.0_示例(114) Laya2.0_文档(107) Laya3.0_文档(54)
...AsynDialogProperties | Methods | Events | Constants Packagelaya.uiClasspublic class AsynDialogInheritanceAsynDialog Dialog View Box Component Sprite Node EventDispatcher Object 异步Dialog的生命周期:show或者popup > onCreate(如果没有创建过) > onOpen > onClose > onDestro...
来源: laya_api 发布时间: 20170929
...r.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } public startFun():void { this.mAniPath = "../../res/spine/spineRes2/goblins.sk"; this.mFactory = new Templet(); this.mFactory.on(Event.COMPLETE, this, this.parseComplete); this.mFactory.on(Event.ERROR, this, this.onError); th...
来源: Laya_示例 发布时间: 20260106
...么回事呢 ?可以帮帮我解答下吗 class Item extends Laya.Box{ public static WID: number = 147; public static HEI: number = 190; private skin_progress_chip:Laya.ProgressBar; private skin_img:Laya.Image; private skin_chipNum:Laya.Text; public skin_btn_use:Laya.Image; private skin_lock:Laya....
来源: Laya_社区 发布时间: 20180828
...imgArray.push(`ui/bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = L...
来源: Laya_社区 发布时间: 20170215
...ort class MSketon { private mFactory: Laya.Templet; public mArmature: Laya.Skeleton private _handler: Laya.Handler; constructor(url: string, handler: Laya.Handler, aniMode: number = 0) { this._handler = handler; t...
来源: Laya_社区 发布时间: 20200618
...extends Laya.Script { // 获得Image组件 @property({ type: Laya.Image }) public img: Laya.Image; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //创建一个颜色滤镜对象 let colorFilter: Laya.ColorFilter = new Laya.Col...
来源: Laya3.0_文档 发布时间: 20250826
...暴露cube的属性,代码如下: @property({ type: Laya.Sprite3D }) public cube: Laya.Sprite3D; 然后在IDE中,将Cube节点拖入装饰器暴露的属性入口,即可用代码控制Cube节点了。 1. 平移变换 平移变换的定义如下: /** * 平移变换。 * @param translation ...
来源: Laya3.0_文档 发布时间: 20251010
...下: package { import flash.display.Sprite; import flash.events.Event; public class Main extends Sprite { public function Main() { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(event:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init...
来源: Laya_社区 发布时间: 20151218
...组资源在地图变化时自动销毁 * **/ public function Load(url:String,isGroup:Boolean):void { _path = UrlConfig.EFFECT_PATH_3D+url; var itemComplete:Sprite3D = Laya.loader.getRes(_path); if(itemCompl...
来源: Laya_社区 发布时间: 20180601
...ames No Frames ScaleBoxProperties | Methods | Events Packagelaya.uiClasspublic class ScaleBoxInheritanceScaleBox Box UIComponent Sprite Node EventDispatcher Object 自适应缩放容器,容器设置大小后,容器大小始终保持stage大小,子内容按照原始最小宽高比缩放 Publ...
来源: Laya2.0_api 发布时间: 20190513