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

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

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

请问如何使我的定义类UIDropBox继承Laya.Sprite? var UIDropBox = (function () { var Sprite = Laya.Sprite; var Text = Laya.Text; function UIDropBox() { UIDropBox.super(this); this.txt = this.getTextFeild(); this.txt.y = 50; this.txt.text = 'aasassa'; console.log(this.addChild);//undefi...

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

42. 为啥静态变量name不能定义 [ 81%]

为啥静态变量name不能定义 src/view/GFHomePageView.ts(22,16): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'GFHomePageView'. 代码如下: export class GFHomePageView extends ui.GFGameHomeUI { static name = "homepageview"; s...

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

43. 分享:如何用代码创建定义Tab组件 [ 81%]

分享:如何用代码创建定义Tab组件 package { import laya.ui.Button; import laya.ui.Tab; import laya.utils.Browser; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#EEFFCC"; //预加载bu...

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

44. Uncaught Can not find class laya.ani.bone.Skeleton [ 81%]

...tBitmapData Cannot find the specified character in all fonts:263c 鼠标定义样式官方有支持吗,Laya.Mouse.hide()会报Uncaught TypeError: Cannot read property 'cursor' of undefined错误 运行报错 Uncaught Can not find scene:GameView.scene undefined Uncaught TypeError: Cannot read pr...

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

45. 如何定义Shader(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 81%]

# 如何定义Shader ###### *version :2.7.0beta Update:2020-6-9* 在这里我们将简单的介绍下如何使用定义Shader。本次是在LayaAirIDE的3D示例项目基础上修改。 #### 1.编写顶点着色器与片元着色器程序。 放在项目代码同级的文件夹 `customMaterial...

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

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

定义页面基类的时候,会动添加Laya命名空间导致报错 本来想做个基类好管理整个项目的统一管理,在1.0里好像没这个问题,但是到了2.0后,就动加了个Laya这个命名空间了,我的命名空间不是这个,所以,生成页面...

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

47. laya.d3.graphics.vertex.VertexMesh_API3.0 [ 81%]

...: number = 12 Defined in laya/d3/graphics/Vertex/VertexMesh.ts:47 顶点定义数据0 Static MESH_CUSTOME1 MESH_CUSTOME1: number = 13 Defined in laya/d3/graphics/Vertex/VertexMesh.ts:49 顶点定义数据1 Static MESH_CUSTOME2 MESH_CUSTOME2: number = 14 Defined in laya/d3/graphics/Vertex/Verte...

来源: Laya3.0_api 发布时间: 20231102

48. Uncaught TypeError: Class constructor Component cannot be invoked without 'new' [ 81%]

...载龙骨动画出报错Uncaught getUint16 error - Out of bounds 鼠标定义样式官方有支持吗,Laya.Mouse.hide()会报Uncaught TypeError: Cannot read property 'cursor' of undefined错误 Laya.GlowFilter is not a constructor Warning!,this class[MiniAdpter] already exist: Object {init: } ...

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

49. IDE-显示IDE创建的界面 [ 81%]

... } //给list赋值更改list的显示 this.list.array = arr; //还可以定义list渲染方式,可以打开下面注释看一下效果 //list.renderHandler = new Handler(this, onListRender); } private onListRender(item: Laya.Box, index: number): void { //定义list的渲染方式 var label: ...

来源: Laya_示例 发布时间: 20251209

50. IDE-显示IDE创建的界面 [ 81%]

... } //给list赋值更改list的显示 this.list.array = arr; //还可以定义list渲染方式,可以打开下面注释看一下效果 //list.renderHandler = new Handler(this, onListRender); } private onListRender(item: Laya.Box, index: number): void { //定义list的渲染方式 var label: ...

来源: Laya2.0_示例 发布时间: 20200319