大约有 449 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0073 秒)
Laya_社区(120) Laya3.0_api(116) Laya2.0_api(72) Laya2.0_文档(55) laya_api(50) Laya3.0_文档(35) Laya2.0_示例(1)
...tion_Example { public function Animation_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 init();//初始化 } private function init():void { var animation:Animation = new Animation();//创建一个 Animation...
来源: Laya3.0_api 发布时间: 20231115
...时为 `null`**只读。** | | responseType | XMLHttpRequestResponseType | 设置该值能够改变响应类型。就是告诉服务器你期望的响应格式。 | | status | `unsigned short` | 该请求的响应状态码 (例如, `状态码`200 表示一个成功的请求).**只读.** | | `statusT...
来源: Laya2.0_文档 发布时间: 20210715
...Component Sprite Node EventDispatcher Object 自适应缩放容器,容器设置大小后,容器大小始终保持stage大小,子内容按照原始最小宽高比缩放 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获...
来源: Laya2.0_api 发布时间: 20190513
...程即可,LayaAir的类库暂时可以忽略,项目的启动类这里设置为Main.as ;然后新建一个`require.as`。 require.as 代码如下: ```java package { /*[IF-FLASH-BEGIN]*/ public class require { public function require(path:String) { } } /*[IF-FLASH-END]*/ } ``` 项目的启...
来源: Laya2.0_文档 发布时间: 20210715
...alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anchorY : NumberY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心点。UIComponent autoHide : Boolean = false一个...
来源: Laya2.0_api 发布时间: 20190513
...alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anchorY : NumberY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心点。UIComponent autoSize : Boolean = false 指定...
来源: Laya2.0_api 发布时间: 20190513
...如果节点需要加载相关的皮肤,但放在不同域,这里可以设置 Optional _url _url: string Inherited from Node._url Defined in laya/display/Node.ts:55 aniSpriteArray aniSpriteArray: any[] Defined in laya/map/GridSprite.ts:23 当前GRID包含的动画 autoSize autoSize: boolean = fa...
来源: Laya3.0_api 发布时间: 20231115
...alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anchorY : NumberY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心点。UIComponent autoSize : Boolean = false 指定...
来源: Laya2.0_api 发布时间: 20190513
...听器能够接收事件通知。 如果侦听鼠标事件,则会自动设置自己和父亲节点的属性 mouseEnabled 的值为 true(如果父节点mouseEnabled=false,则停止设置父节点mouseEnabled属性)。 Node onAwake():void 组件被激活后执行,此时所有节点和组件均...
来源: Laya2.0_api 发布时间: 20190513
...ited from Resource.obsolute Defined in laya/resource/Resource.ts:139 如果设置一个已缓存的资源obsolute为true,则 1)getRes仍然可以返回这个资源; 2)下次加载时会忽略这个缓存而去重新加载。。 Returns boolean Inherited from Resource.obsolute Defined in laya...
来源: Laya3.0_api 发布时间: 20231102