大约有 3,008 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0078 秒)
Laya_社区(1073) Laya3.0_api(672) Laya2.0_api(368) laya_api(298) Laya2.0_文档(233) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(100)
...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_示例 发布时间: 20250223
API DocumentationAll Packages | All Classes | Index | Frames No Frames MouseJointProperties | Methods Packagelaya.physics.jointClasspublic class MouseJointInheritanceMouseJoint JointBase Component Object 鼠标关节:鼠标关节用于通过鼠标来操控物体。它试图将物体拖向...
来源: Laya2.0_api 发布时间: 20190513
...示这个img。我们新建个项目。代码如下所示: ```typescript class LayaUISample { constructor() { //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor = "#ffcccc"; var data: string = "data:image/svg+xml," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp: Laya.Spri...
来源: Laya2.0_文档 发布时间: 20210715
...function (_super) { function background() { background.super(this); } Laya.class(background,"background",_super); return background; })(ui.backgroundUI);backgound.ui也在场景编辑器里编辑并导出了。 然后运行的时候就会出错如下图 求解答 附件 : --> 2018-01-29 添加...
来源: Laya_社区 发布时间: 20180129
...打开链接查看:[https://layaair.ldc.layabox.com/api/?category=Bone&class=laya.ani.bone.Skeleton](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=Animation&class=laya.ani.bone.Skeleton) 创建 DragonBonesDemo.js,代码编写如下: ```java //初...
来源: Laya2.0_文档 发布时间: 20210715
API DocumentationAll Packages | All Classes | Index | Frames No Frames PhysicsColliderProperties | Methods Packagelaya.d3.physicsClasspublic class PhysicsColliderInheritancePhysicsCollider PhysicsTriggerComponent PhysicsComponent Component Object PhysicsCollider 类用于创建物理碰撞...
来源: Laya2.0_api 发布时间: 20190513
API DocumentationAll Packages | All Classes | Index | Frames No Frames AcceleratorProperties | Methods Packagelaya.device.motionClasspublic class AcceleratorInheritanceAccelerator EventDispatcher Object Accelerator.instance获取唯一的Accelerator引用,请勿调用构造函数。 liste...
来源: laya_api 发布时间: 20170929
...xternals Only exported Menu Globals "laya/media/SoundChannel" SoundChannel Class SoundChannel SoundChannel 用来控制程序中的声音。每个声音均分配给一个声道,而且应用程序可以具有混合在一起的多个声道。 SoundChannel 类包含控制声音的播放、暂停、...
来源: Laya3.0_api 发布时间: 20231115
...类中没有声明场景中的Button等控件? export module ui { export class GameSceneuiUI extends Laya.Scene { public static uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button.png","name":"butStart","...
来源: Laya_社区 发布时间: 20200228
....resource.Texture; import laya.ui.Image; import laya.utils.Handler; public class addPic { private var picUrl:String; private var pic:Sprite; private var picX:int; private var picY:int; public function addPic(str:String, x:int, y:int) { picUrl = str; picX = x; picY = y; Laya.loader.load(picUrl, Handl...
来源: Laya_社区 发布时间: 20170522