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

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

321. 垂直滚动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

...添加如下的示例代码,实现脚本控制VScrollBar: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.VScrollBar }) public vscroll: Laya.VScrollBar; //组件被激活后执行,此时所有节点和组件均已创建完毕...

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

322. Layaair scene怎么不会自动生成代码了? [ 65%]

...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

323. 按照打地鼠教程来无法正常加载资源 [ 65%]

按照打地鼠教程来无法正常加载资源 public class Main{         public function Main(){             //初始化引擎             Laya.init(1136, 640);             Laya.stage.bgColor = "#ffcccc";             var resArr:Array = [  ...

来源: Laya_社区 发布时间: 20180106

324. laya.ui.AutoBitmap_API3.0 [ 64%]

...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

325. 输入设备-指南针 [ 64%]

...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

326. laya.ui.UIEvent [ 64%]

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

327. 实例化 laya.ani.bone.Skeleton 对象报错 [ 64%]

实例化 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

328. ScrollRect设置会引起其他的UI资源无法正在显示 [ 64%]

...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

329. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 64%]

...?代码如下:   /**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

330. 3D场景跳转到2D场景问题 [ 64%]

...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