大约有 3,165 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0082 秒)
...btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } ``` 上述代码运行效果如动图2所示:  (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=U...
来源: Laya2.0_文档 发布时间: 20210714
...基本的加载场景写法,来源于官方例子参考。只要这么写运行就会报错,无论load的路径对与否,都会报以下错误。麻烦有经验的朋友们,帮忙看下什么原因,十分感谢。RangeError: Source is too large at Uint8Array.set (native) at Pv ...
来源: Laya_社区 发布时间: 20181228
...tn.pos(100,100); btn.label = "按钮"; } } new GameMain(); ``` 上述代码运行效果如动图2所示:  (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=U...
来源: Laya2.0_文档 发布时间: 20210714
...id Inherited from Node.callLater Defined in laya/display/Node.ts:621 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 see #runCallLater() Parameters method: Function 要执行的函数的名称。例如,functionName。 Default value args: a...
来源: Laya3.0_api 发布时间: 20231115
...id Inherited from Node.callLater Defined in laya/display/Node.ts:621 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 see #runCallLater() Parameters method: Function 要执行的函数的名称。例如,functionName。 Default value args: a...
来源: Laya3.0_api 发布时间: 20231115
...aya.stage._canvasTransform = matrix;//重新设置矩阵 } }); } } } 代码运行成功后在主域里可以绘制LayaAiride的UI示例,包括list列表。按钮点击等交互; 附近里上传了AS3代码示例,以及JS运行示例,有不明白的开发者欢迎留言。 压缩包说明: ...
来源: Laya_社区 发布时间: 20180525
...面的代码拷贝到引擎示例(3D-物理系统-基础碰撞器)中运行即可: class PhysicsWorldBaseCollider{ constructor(){ //初始化引擎 Laya3D.init(0, 0); //设置画布模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; ...
来源: Laya_社区 发布时间: 20201127
...height = 50; btn.pos(100,100); btn.label = "按钮"; } } } ``` 上述代码运行效果如动图2所示:  (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=U...
来源: Laya2.0_文档 发布时间: 20210715
...的,跳到编辑模式就显示这个 Error: asBitmap no size! IDE不能运行调试提示:Chrome error: Error:... spine动画转换失败,加载错误:导出二进制数据出错:writeUint8 error - Out of range261, 有谁知道什么原因导致的吗? 怎样解决? spine转换失败,加载错...
来源: Laya_社区 发布时间: 20190304
...itor Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inherited from Component.scriptPath Defined in laya/components/Component.ts:35 Accessors awaked get awaked(): boolean Inherited from Component.awaked Defined in laya/components/Co...
来源: Laya3.0_api 发布时间: 20231115