大约有 1,163 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0062 秒)
Laya3.0_api(314) Laya_社区(299) Laya2.0_api(226) laya_api(174) Laya2.0_文档(113) Laya3.0_文档(34) Laya2.0_示例(3)
...xt_InputSingleline(){ var textInput = new Laya.TextInput("单行输入");//创建一个 TextInput 类的实例对象 textInput 。 textInput.wordWrap = true;//设置 textInput 的文本自动换行。 textInput.fontSize = 30;//设置 textInput 的字体大小。 textInput.x = 0;//设置 textInput ...
来源: Laya2.0_文档 发布时间: 20210714
...舞台 Laya.init(Laya.Browser.width, Laya.Browser.height, Laya.WebGL); //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect = new Laya.Rectangle(0, 0, Laya.Browser.width, Laya.Browser.height); //创建TiledMap地图 this.tMap.crea...
来源: Laya_社区 发布时间: 20190321
...s.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { // //创建一个Animation实例 // var tl = new Laya.Animation(); // //加载动画文件 // tl.loadAnimation("test.ani"); // //添加到舞台 // Laya.stage.addChild(tl); // //播放Animation动画 // tl.play(); //创建一个...
来源: Laya_社区 发布时间: 20190708
动效模板没有效果 按照 创建动画模板(EffectAnimation) 文档进行到最后,浏览器中没有示例中的效果,代码无报错,还有什么地方要配置的? 2019-04-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20190415
...lic class BoundsOctreeInheritanceBoundsOctree Object BoundsOctree 类用于创建八叉树。 Public Methods MethodDefined By BoundsOctree(initialWorldSize:Number, initialWorldPos:Vector3, minNodeSize:Number, looseness:Number) 创建一个 BoundsOctree 实例。 BoundsOctree add(object:IOctr...
来源: Laya2.0_api 发布时间: 20190513
...rController PhysicsComponent Component Object CharacterController 类用于创建角色控制器。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By canCollideWith : int 获取可碰撞的碰撞组。 PhysicsComponent canScaleShape : Boolean =...
来源: Laya2.0_api 发布时间: 20190513
...umber, h:Number, style:CSSStyle) 根据指定的字符、宽高、样式,创建一个 HTMLChar 类的实例。 HTMLChar getSprite():Sprite 获取与此对象绑定的显示对象 Sprite。 HTMLChar setSprite(sprite:Sprite):void 设置与此对象绑定的显示对象 Sprite 。 HTMLCharPrope...
来源: laya_api 发布时间: 20170422
...ethodDefined By PixelLineSprite3D(maxCount:int = 2, name:String = null) 创建一个 PixelLineSprite3D 实例。 PixelLineSprite3D _changeRenderObjects(sender:PixelLineRenderer, index:int, material:BaseMaterial):void PixelLineSprite3D _cloneTo(destObject:*, srcRoot:Node, dstRoot:Node):void[ov...
来源: Laya2.0_api 发布时间: 20190513
...jectSubclasses BoxCollider, MeshCollider, SphereCollider Collider 类用于创建碰撞器的父类,抽象类,不允许实例。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By destroyed : Boolean[read-only] 获取是否已销毁。 Compon...
来源: laya_api 发布时间: 20170929
...anceTrailRenderer BaseRender EventDispatcher Object TrailRenderer 类用于创建拖尾渲染器。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By bounds : Bounds[read-only] 获取包围盒,只读,不允许修改其值。 BaseRender castShad...
来源: Laya2.0_api 发布时间: 20190513