大约有 786 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0063 秒)
Laya_社区(386) Laya2.0_文档(85) Laya3.0_api(74) Laya2.0_api(66) laya_api(63) Laya3.0_文档(53) Laya_示例(32) Laya2.0_示例(27)
...添加如下的示例代码,实现脚本控制VScrollBar: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.VScrollBar }) public vscroll: Laya.VScrollBar; //组件被激活后执行,此时所有节点和组件均已创建完毕...
来源: Laya3.0_文档 发布时间: 20251010
...ce了吗? layabox1.0还可以这样写: namespace game{ export class Define{ } } import Define =game.Define; LayaAir2.0导入无效 2019-05-27 0 0 分享 微博 QZONE 微信 156*****215 赞同来自: 需要这样写成这样: import {Define} from "./game/Define" ? 2019-05-...
来源: Laya_社区 发布时间: 20190524
按照打地鼠教程来无法正常加载资源 public class Main{ public function Main(){ //初始化引擎 Laya.init(1136, 640); Laya.stage.bgColor = "#ffcccc"; var resArr:Array = [ ...
来源: Laya_社区 发布时间: 20180106
...rited Externals Only exported Menu Globals "laya/ui/AutoBitmap" AutoBitmap Class AutoBitmap AutoBitmap 类是用于表示位图图像或绘制图形的显示对象。 封装了位置,宽高及九宫格的处理,供UI组件使用。 Hierarchy Graphics AutoBitmap Index Constructors constructor Pro...
来源: Laya3.0_api 发布时间: 20231115
...ce/kd.png", compassImg, degreesText, directionIndicator, firstTime = true; class InputDevice_Compass { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(700, 1024, WebGL)...
来源: Laya2.0_示例 发布时间: 20251209
API DocumentationAll Packages | All Classes | Index | Frames No Frames UIEventProperties | Methods | Constants Packagelaya.uiClasspublic class UIEventInheritanceUIEvent Event Object UIEvent 类用来定义UI组件类的事件类型。 Public Properties Hide Inherited Public Properties Show...
来源: laya_api 发布时间: 20170929
实例化 laya.ani.bone.Skeleton 对象报错 export default class showSpine extends Laya.Script{ constructor() { super(); //创建一个Skeleton对象 //Laya let skeleton: laya.ani.bone.Skeleton = new laya.ani.bone.Skeleton(); } } 实例化报错 为啥 2018-09-28 添加评论 免费帖 --> 分享...
来源: Laya_社区 发布时间: 20180928
...ort laya.ui.Image; import laya.utils.Handler; import ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,...
来源: Laya_社区 发布时间: 20171113
...?代码如下: /**Created by the LayaAirIDE*/ module view { export class Guide extends ui.GuideUI { constructor() { super(); // 创建Video元素 let videoElmt: any = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElmt); // 设置Video元素地样式和属性...
来源: Laya_社区 发布时间: 20180802
...from '../ui/layaMaxUI' import GameScene from './GameScene'; export default class VictoryScene extends VictorySceneUI { constructor() { super(); } onAwake(){ let btnOnce=this.getChildByName("btnOnce"); btnOnce.on(Laya.Event.CLICK,this,this.onClick); } onClick(e){ this.removeSelf(); let gameScene...
来源: Laya_社区 发布时间: 20190903