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

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

101. List组件拖动浏览时item会出现重叠的现象 [ 67%]

...叠的现象 module list.datasource { import List = laya.ui.List; export class ListDataSourceMediator { constructor() { } public setUp():void { var list: List = new List(); // 渲染的item list.itemRender = ListDataSourceItem; // 设置行列显示的item个数 list.repeatX = 1; list.repeatY = 4; /...

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

102. 请问如何使我的自定义类UIDropBox继承Laya.Sprite? [ 67%]

...fined console.log(this._super);//undefined this.addChild(this.txt); } Laya.class(UIDropBox, "UIDropBox", Sprite); UIDropBox.prototype = { getTextFeild: function () { var text = new Text(); text.overflow = Text.VISIBLE; text.color = "#FFFFFF"; text.fontSize = 20; return text; } } return UIDropBox; })...

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

103. 关于要自定shader的同学 [ 67%]

...= new_texture 其他的参照shader原文档 2.要修改shader里面的值 class ShaderValue extends Laya.Value2D {class ShaderValue extends Laya.Value2D { constructor () { super(0, 0) var _vlen = 8 * Laya.CONST3D2D.BYTES_PE this.position = [2, Laya.WebGLContext.FLOAT, false, _vlen, 0] this.texcoord...

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

104. Shake.instance.start(5, 500);这里面的5和500什么意思? [ 67%]

...什么意思啊? ScrollBar 组件图片名字带$是什么意思? Laya.class是什么意思 layabox js中 的__super,call()是什么意思 这个写法是什么意思,能否解释一下,谢谢 camera的orthographicVerticalSize属性是什么意思? 文档上写的太简洁了! 控制台显...

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

105. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 67%]

...发的功能。我们写个简单的例子来看下用法: ```typescript class LayaSample { constructor() { //初始化引擎 Laya.init(1136, 640); var xhr: Laya.HttpRequest = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Laya.Event.COMPLETE, this, this.complete...

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

106. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 66%]

...rte添加2d物理特性 官方的2d物理引擎文档都是IDE篇的。   class CollisionBoll extends Laya.Sprite { private _boll1:Laya.Sprite; constructor() { super(); //物理模块 this._boll1 = new Laya.Sprite(); this.addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_cl...

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

107. PBR标准材质实时阴影渲染问题 [ 66%]

...odelViewer from "./ModelViewer"; import Scene = Laya.Scene; export default class Game3D extends Scene { constructor() { super(); //初始化引擎 Laya3D.init(0, 0); var scene_360 = Laya.loader.getRes("LayaScene_PUCHENG3D/Conventional/PUCHENG3D.ls") as Laya.Scene3D; Laya.stage.addChildAt(scene_360, ...

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

108. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 66%]

...va package { import laya.events.Event; import laya.net.HttpRequest; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var xhr:HttpRequest = new HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler)...

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

109. Cannot read property 'toDefault' of undefined报错是什么原因 [ 66%]

...ty 'toDefault' of undefined报错是什么原因 主要代码如下:Laya.class(MousePickingScene, "MousePickingScene", Laya.Scene); function MousePickingScene() { MousePickingScene.super(this); this.camera = new Laya.Camera(0,0.1,100); this.addChild(this.camera); this.camera.clearFlag = Laya.BaseC...

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

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

...el类:package { // import laya.ui.Label; import laya.webgl.WebGL; public class DemoLabel { public function DemoLabel() { Laya.init(800, 600, WebGL); Laya.stage.bgColor = "#232628"; //---------------------------------这是用我自己写的label继承了官方的label,问题是label显示不出...

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