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

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

1081. 文本对齐与自动换行(ActionScript-LayaAir基础篇(AS3)-文本) [ 69%]

...将不会有效果。 ```java package { import laya.display.Text; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136,640); var txt:Text = new Text(); //设置文本内容 txt.text = "hello_world"; //设置文本区背景 txt.bgColor = "#c30c30"; //设置文本...

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

1082. laya.physics.ColliderBase [ 69%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames ColliderBaseProperties | Methods Packagelaya.physicsClasspublic class ColliderBaseInheritanceColliderBase Component ObjectSubclasses BoxCollider, ChainCollider, CircleCollider, PolygonCollider 碰撞体基类 Public Prop...

来源: Laya2.0_api 发布时间: 20190513

1083. laya.d3.renderobjs.nativeobj.NativeVertexBuffer3D_API3.0 [ 69%]

...s "laya/d3/RenderObjs/NativeOBJ/NativeVertexBuffer3D" NativeVertexBuffer3D Class NativeVertexBuffer3D Hierarchy VertexBuffer3D NativeVertexBuffer3D Index Constructors constructor Properties _buffer _bufferType _bufferUsage _byteLength _conchVertexBuffer3D _glBuffer Accessors bufferUsage canRead inst...

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

1084. 加载-加载序列 [ 68%]

...aya { import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_Sequence { private numLoaded: number = 0; private resAmount: number = 3; constructor() { Laya.init(500, 400); // 按序列加载 monkey2.png - monkey1.png - monkey0.png // 不开启缓存 // 关闭并发加载 La...

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

1085. laya.d3.math.BoundBox [ 68%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames BoundBoxProperties | Methods Packagelaya.d3.mathClasspublic class BoundBoxInheritanceBoundBox ObjectImplements laya.d3.core.IClone BoundBox 类用于创建包围盒。 Public Properties PropertyDefined By  max : Vecto...

来源: Laya2.0_api 发布时间: 20190513

1086. TiledMap,mapLayer追加精灵无法显示,已参考完已有问题解答,无法解决 [ 68%]

...会报错说_showGridList不存在,需要在libs/LayaAir.d.ts里,找到class MapLayer extends Sprite这一行,在下面加上一行代码: class MapLayer extends Sprite { _mapData: Array<any>; /** * @private */ _gridSpriteArray: Array<any>; _showGridList: Array<any>; //这...

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

1087. Image属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 68%]

....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.Image)。 ​ **Image 组件的资源示例:** ​ ![图片0.png](img/1.png) ​ (图1) ​ **Image 组件拖放到编辑区后显示效果:** ​ ![图片0.png](img/2.png) ​ (图2) ### 1.2 Image ...

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

1088. 2.0按钮添加事件报错 cannot read property 'on' fof undefined [ 68%]

2.0按钮添加事件报错 cannot read property 'on' fof undefined class GameLogin extends ui.login.login_bgUI { constructor() { super(); this.btn_register.on("click", this, this.ToRegisterPage); } ToRegisterPage() : void { this.loadScene("login/register_page"); } }   //调用on的时候 直接...

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

1089. layaMaxUI.js export ui bug (影响编译) [ 68%]

...0beta2  IDE自动生成的/src/ui/layaMaxUI.js 中代码如下: /**This class is automatically generated by LayaAirIDE, please do not make any modifications. */ var CLASS$=Laya.class; var STATICATTR$=Laya.static; var View=laya.ui.View; var Dialog=laya.ui.Dialog; if(!window.ui) window.ui={}; ........

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

1090. TypeError: Cannot read property '_byteLength' of null [ 68%]

...r.window.conch.setFontFaceFromBuffer is not a function Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprit...

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