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

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

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

...幕旋转后滚动条没有跟随旋转 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

162. webgl 下当对象子显示对象存在panel且panel有子集时,旋转此显示对象会导致此显示对象的同级对象消失!(1.7.10beta) [ 57%]

...d消失 parent.child_1.rotation = Math.random() * 180; } } class ChildView extends ui.ChildViewUI{ constructor(){ super(); var panel = new Laya.Panel(); panel.pos(0,0); panel.size(200,50); this.addChild(panel); var panelChild = new Laya.Sprite(); panelChild.pos(0,0); panelChild.size(200,50); panel.a...

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

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

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

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

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

165. List属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 57%]

...格类,继承于Box import laya.ui.Box; import laya.ui.Image; class Item extends Box { /***单元格宽***/ public static var WID:int = 375; /***单元格高***/ public static var HEI:int = 85; /***单元格中图片***/ public var img:Image; public function Item() { //设置大小宽高 size(WID,...

来源: Laya2.0_文档 发布时间: 20210715

166. LayaBox HelloWorld实战 [ 57%]

...话框,对话框里面展示 Hello World!export default class HelloWorld extends Laya.Scene { constructor() { super(); HelloWorld.instance = this; } onBtnShowClick(){ var dialog = new Laya.Dialog(); dialog.width=300; dialog.height=600; //var bg = new Laya.Image('comp/img_bg.png'); //dialog.addChil...

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

167. 【LIST无法拖动】参照官方实例做的 [ 57%]

...ox; import Image = Laya.Image; import Text = Laya.Text; class Item extends Box {     public static WID: number = 400;     public static HEI: number =40;     private text_guanqia: Text;     private text_guanqia_info: Text;      private img: Image;    ...

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

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

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

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

169. Laya3d球星添加了刚体,但是碰撞无法触发onTriggerEnter的问题,有偿悬赏解答 [ 56%]

...,就可以获取到觖发信息了 export default class PlayerController extends Laya.Script3D 2020-07-29 0 0 分享 微博 QZONE 微信 不懂就问 赞同来自: isKinematic=true,这个为true是没有碰撞检测的 2020-07-29 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...

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

170. 自己写了个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