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

大约有 166 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0043 秒)

11. 新人求教!!! [ 73%]

...序入口 class Main{ //需要切换的图片资源路径 private monkey1:string = "res/img/monkey1.png"; private monkey2:string = "res/img/monkey2.png"; //切换状态 private flag:boolean = false; private img:Laya.Sprite; constructor() {       //初始化引擎       Laya.init(1334,750);   ...

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

12. 二次开发(TypeScript-LayaNative原生服务-LayaNative进阶) [ 73%]

...//iOS注意函数签名,注意与Android的不同 alert(bridge.call("testString:","hello")); alert(bridge.call("testNumber:",256.0)); alert(bridge.call("testBool:",false)); obj.value = "Hello OC!"; bridge.callWithBack(function(value) { var obj = JSON.parse(value) alert(obj.value); },"testAsyncCall...

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

13. LAYABOX游戏实时语音之APP版本 [ 73%]

...roid:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name"> <activity android:name="demo.MainActivity" android:screenOrientation="landscape" android:windowSoftInputMode="stateHidden|adjustPan" android:configChanges="keyboard|keyboardHidden|screenLayout|screenSi...

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

14. 二次开发 · LayaAir3.0文档 · LAYABOX [ 72%]

...//iOS注意函数签名,注意与Android的不同 alert(bridge.call("testString:","hello")); alert(bridge.call("testNumber:",256.0)); alert(bridge.call("testBool:",false)); obj.value = "Hello OC!"; bridge.callWithBack(function(value) { var obj = JSON.parse(value) alert(obj.value); },"testAsyncCall...

来源: Laya3.0_文档 发布时间: 20230303

15. laya.resource.HTMLCanvas_API3.0 [ 72%]

...锁,如果true为不能使用自动释放机制。 Optional name name: string Inherited from Resource.name Defined in laya/resource/Resource.ts:105 名称。 url url: string Inherited from Resource.url Defined in laya/resource/Resource.ts:107 获取资源的URL地址。 uuid uuid: string Inherited...

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

16. laya.ui.AdvImage [ 71%]

...获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 UIComponent cacheAs : String 指定显示对象...

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

17. JSON文件加载成功后,怎么解析成Object对象 [ 71%]

...ame": "Chen"}'); traceMsg(test['id']); traceMsg(test['name']); var jsonURL:String = "res/json/config.json"; traceMsg("加载: " + jsonURL); Laya.loader.load(jsonURL, Handler.create(this, readJsonFinish, [jsonURL]), null, Loader.JSON); } private function readJsonFinish(url:String = null):void { trace...

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

18. laya.filters.ColorFilter_API3.0 [ 71%]

...矩阵)组成的数组 Returns ColorFilter this setColor setColor(color: string): ColorFilter Defined in laya/filters/ColorFilter.ts:61 设置滤镜色 Parameters color: string 颜色值 Returns ColorFilter Static _filter _filter(this: RenderSprite, sprite: Sprite, context: Context, x: number, y: ...

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

19. as3字符串截取int的问题 [ 69%]

as3字符串截取int的问题 String("10,12").split(','); 被自动成以下JS并报错Uncaught ReferenceError: int is not defined function DConfig(){}; __class(DConfig,'DConfig'); __getset(1,DConfig,'GamrRoomEnterPower',function(){ return DConfig.gamrRoomEnterPower; },function(value){ DConfig....

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

20. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 68%]

...没留下…… **/ interface ITextFormat { /** * 背景色 */ bgColor?: string; /** * 是否加粗 */ bold?: number; /** * 文本框背景色 */ borderColor?: string; /** * 文本颜色 */ color?: string; /** * 字体 */ font?: string; /** * 字体大小 */ fontSize?: number; /** * 是否为斜体 ...

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