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

大约有 443 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0067 秒)

271. 求助,屏幕旋转后滚动条没有跟随旋转 [ 56%]

...幕旋转后滚动条没有跟随旋转 module dialog { export class WanF extends ui.dialog.WanFUI { constructor() { super(); this.rotation = 90; this.pos(1060, 280); let panel = new Laya.Panel(); panel.size(638, 527); panel.vScrollBarSkin = "CommDialog/vscroll.png"; this.sp_wanfa.addChild(panel); l...

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

272. Laya3D场景加载问题 [ 56%]

...试内容:加载3D场景   代码如下: export default class TestUI extends ui.test.TestSceneUI {     private resource: Array<String> = [         "gate/Conventional/Test.ls",     ];     constructor() { super(); }     onAwake(): void {         Laya.loader.create(this.resou...

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

273. 这种进度条怎么实现? [ 56%]

...llen 赞同来自:  import Sprite = Laya.Sprite export default class Test extends Sprite{ public DEF_SIZE: number = 200 public CIRCLE_WIDTH: number = 20 public $circleSprite: Sprite = new Sprite() public startY: number = -90 constructor() { super() this._init() } private _init() { this.cacheAs = "b...

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

274. 为什么创建的脚本 变量在编辑模式赋值后 运行时为undfined [ 56%]

... • 2018-10-24 18:14 写一个ts文件,写上 export default class Move extends Laya.Script{ /** @prop {name:target,tips:"目标容器",type:Prefab}*/ targetPrefab:Laya.Prefab; } 将文件在编辑模式下赋给点添加组件=》code=》move 然后创建一个box拖为预制体 放在...

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

275. 自定义页面基类的时候,会自动添加Laya命名空间导致报错 [ 56%]

...w) declare module Laya{//在这个module里添加     class BaseView extends Scene{}//继承自Scene }里加上自己定义的页面,然后在编辑页面F9的Code导入类里写上引用和赋值   import BaseView from "../BaseView"; Laya.BaseView = BaseView 2019-09-06 0 1 分享 微博 QZ...

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

276. 3D场景中背景无法透明,版本2.7.1 [ 56%]

...2.7.1,无法背景透明,永远是黑色 export default class GameUI extends Laya.Scene { constructor() { super(); Config.isAlpha = true; Laya.init(480, 900); Laya.stage.bgColor = null; //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(...

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

277. 自己写了个label继承官方的label,出现了问题,求指导~ [ 56%]

.../** * 继承官方的label * @author Administrator * */ public class Label extends laya.ui.Label { private var _textFormat:TextFormat; private var _txt:String; private var _lWidth:int; private var _lHeight:int; private var _lx:int; private var _ly:int; public function Label(text:String="") { super(t...

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

278. 3Ddemo加载Unity导出场景报错resou._removeReference is not a function [ 55%]

...脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { constructor() { super();          //加载3D场景 //var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; Laya.Scene3D.load("res/LayaScene_terrain/Conventiona...

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

279. Laya3.0 工程内的bundle.js文件存在某个类 导出微信工程后bundle.js又将该类裁剪了 [ 55%]

...况要怎么避免   @FGUIComponent("ui://login") export class TFrmLogin extends TGenFrmLogin {      onConstruct(): void {         super.onConstruct();     }  } 附件 : --> 2023-05-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

280. 升级到3.0-beta6无法选择资源了 [ 55%]

...None,也无法拖放! 代码如下: @regClass() export class NewScript extends Laya.Script {     //declare owner : Laya.Sprite3D;      @property(String)     public text: string = "";      @property(Laya.Image)     public image: Laya.Image = null;      constructor() {         s...

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