大约有 3,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0056 秒)
Laya_社区(1088) Laya3.0_api(672) Laya2.0_api(368) laya_api(298) Laya2.0_文档(233) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(110)
...文件夹npc,并且创建一个类。代码如下:module npc { export class BaseNPC extends Laya.Sprite { constructor() { super(); this.graphics.drawCircle(0, 0, 10, "#ff0000"); } } } 然后在我的主文件中import,并new出来。代码如下:import BaseNPC = npc.BaseNPC; var npcc:Base...
来源: Laya_社区 发布时间: 20180205
API DocumentationAll Packages | All Classes | Index | Frames No Frames AnimatorProperties | Methods | Events Packagelaya.d3.componentClasspublic class AnimatorInheritanceAnimator Component3D EventDispatcher ObjectImplements laya.resource.IDestroy Animator 类用于创建动画组件。 Pub...
来源: laya_api 发布时间: 20170929
...自: Laya.URL.__init__函数被修改了。之前版本是这样的。 class URL { static __init__() { null == URL.basePath && (URL.basePath = location && null != location.protocol && "" != location.protocol ? URL.getPath(location.protocol + "//" + location.host + location...
来源: Laya_社区 发布时间: 20250701
...02-03 0 1 分享 微博 QZONE 微信 taofljf 赞同来自: // 程序入口 class GameMain{ private tMap:Laya.TiledMap; constructor() { //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(); //创建TiledMap...
来源: Laya_社区 发布时间: 20180203
...spine官方的goblin例子,替换的图片全在atlas里// 程序入口 class GameMain{ private m_skeleton : Laya.Skeleton; private m_templet : Laya.Templet; constructor() { Laya.init(1334,750,Laya.WebGL); this.m_templet = new Laya.Templet(); this.m_templet.on(Laya.Event.COMPLETE, this, this.parse...
来源: Laya_社区 发布时间: 20180126
...0, mSpacingX, mSpacingY, mAnimationArray = [], mFactory, mActionIndex = 0; class PerformanceTest_Skeleton { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas ...
来源: Laya2.0_示例 发布时间: 20251219
...ay.Graphics; import laya.display.Sprite; /** * ... * @author Kun */ public class GraphicsUtil { /** * 绘画圆角矩形 * @param graghics Graghics对象 * @param x 开始绘制的x轴位置 * @param y 开始绘制的y轴位置 * @param width 矩形宽 * @param height 矩形高 * @param roundRadius ...
来源: Laya_社区 发布时间: 20190117
...址](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.component.Script3D))。 关于脚本的添加使用这里不做过的讲解,在以往的示例中都有或多或少的使用脚本。关于脚本的官方示例([demo地址](https://layaair.ldc.layabox.com/d...
来源: Laya2.0_文档 发布时间: 20210715
...方法,如何将一个RGBA图像绘制到画布里面 代码如如下: class Test extends Laya.Sprite{ render(context: laya.renders.RenderContext, x: number, y: number){ context.putImageData(null,100,100); } } 但是 putImageData 方法不存在,要怎么样才能使用putImageData 有何办法?...
来源: Laya_社区 发布时间: 20170216
...请查看API链接 https://layaair.ldc.layabox.com/api/?category=3D&class=laya.d3.core.particleShuriKen.ShurikenParticleSystem 粒子效果,你查看一下官方的引擎示例: https://layaair.ldc.layabox.com/demo/?category=3d&group=particle&name=Particle_EternalLight https:...
来源: Laya_社区 发布时间: 20180615