大约有 571 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0045 秒)
Laya_社区(251) Laya3.0_api(78) Laya3.0_文档(64) Laya2.0_api(63) laya_api(56) Laya2.0_文档(48) Laya_示例(8) Laya2.0_示例(3)
请问如何使我的自定义类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
为啥静态变量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
分享:如何用代码创建自定义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
...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
# 如何自定义Shader ###### *version :2.7.0beta Update:2020-6-9* 在这里我们将简单的介绍下如何使用自定义Shader。本次是在LayaAirIDE的3D示例项目基础上修改。 #### 1.编写顶点着色器与片元着色器程序。 放在项目代码同级的文件夹 `customMaterial...
来源: Laya2.0_文档 发布时间: 20210715
自定义页面基类的时候,会自动添加Laya命名空间导致报错 本来想自自做个基类好管理整个项目的统一管理,在1.0里好像没这个问题,但是到了2.0后,就自动加了个Laya这个命名空间了,我的命名空间不是这个,所以,生成页面...
来源: Laya_社区 发布时间: 20190417
...: 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
...载龙骨动画出报错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
... } //给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
... } //给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