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

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

271. list 加载动画为什么实现的效果会错乱掉? [ 54%]

...; ani.scale(80/bounds.width ,80/bounds.height) this.addChild(ani) } } Laya.class(Item1, "Item1", Box); var List = Laya.List; function setup(effList) { var list = new List(); list.itemRender = Item1; list.repeatX = 3; list.repeatY = 4; list.x = (Laya.stage.width - WID * list.repeatY) / 2 - 100; list....

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

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

...,点击选择弹出框显示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;     ...

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

273. LayaBox加载TiledMap地图和注意事项 [ 54%]

...[/*] [*] [/*] [*] [/*] [*] [/*] [*] [/*] [/list] [code]export default class DesertUI extends Laya.Scene {    constructor() { super();        DesertUI.instance = this; Laya.MouseManager.multiTouchEnabled = false;        this.loadScene("Desert.scene"); //初始化舞台 Laya...

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

274. Image.loadImage 方法加载问题 [ 54%]

...publicSpaceData = cell.dataSource; } module gamepublicspaceitem {  export class PublicSpaceItem extends Laya.Box  {   public static BTN_ENTRER_CLICK:string = "BtnEnterClick";   public _publicSpaceData:datasheet.PublicSpaceData;   private bg:Laya.Image;   private btnEnter:Laya.Button;   c...

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

275. 请问 layaair2.0的js有没有api可以查询 例如Laya.Script [ 54%]

...击它们无法获知,我点的是哪个,代码 如下 export default class btn1 extends Laya.Script { constructor(){super();} onEnable(){} onClick(){ alert("id="+this.id); //这里有一个id,但是系统自动生成的,无法获知这个id代表哪个按钮被点(因为我有4个按钮...

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

276. List属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 54%]

....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.List)。 ### 1.1 创建 List 组件 #### 1.编辑列表项。 ​ 列表项可以是 Box 对象或 View(页面) 或其它自定义页面对象。此处以Box 对象为例。 ​ **a.**从资源面板里选...

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

277. image在相应loaded的时候,无法正确获取高度 [ 54%]

image在相应loaded的时候,无法正确获取高度 class RoleUIDynamic extends Laya.Image { matterBody: Matter.Body; constructor() { super(); this.on('start', this, this.init); } private init():void { console.log("init", this.x, this.y, this.width, this.height, this.scaleX, this.scaleY); var ...

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

278. 请大家帮助优化一下这个抛物线的代码 [ 53%]

...码  希望大家指正 https://my.oschina.net/u/659068/blog/1564002  class Ball extends Laya.Sprite{ private static cached:boolean = false; private body:Laya.Sprite; constructor(){ super(); this.init(); } public init():void{ if(!Ball.cached){ Ball.cached = true; this.body = new Laya.Sprite(); th...

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

279. prop 识别不到 [ 53%]

...de报未定义,IDE F8编译时也不通过   代码: export default class Index extends Laya.Script {     /* @prop {name: speed, tips: "速度", type: Number, default: 10} */      constructor() {         super();     }      onAwake() {        ...

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

280. 重复背景,全方向地图拖动Demo [ 53%]

...o UI创建4个image  var分别: map0,map1,map2,map3 背景图宽高 1800 class WorldPage extends ui.WorldPageUI{ constructor (x,y) { super() this.maxX = 149850 this.maxY = 97500 this.offsetX = x * 150 this.offsetY = y * 150 this.downMouseX = 0 this.downMouseY = 0 Laya.loader.load(['bg/world_bg.jpg...

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