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

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

81. 分享一个Shader版CoolDown实现 [ 53%]

...享出来,大家有兴趣看看 正常渲染效果   alpha遮罩   用法: var texture: Laya.Texture = Laya.Loader.getRes("progress.png"); this.spe = new coolDownSprite(); this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.prog...

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

82. 绘制图形 · LayaAir3.0文档 · LAYABOX [ 53%]

...更加方便。但是开发者可以通过这个示例理解相关参数用法。 运行效果(A、B、C、D四个点在运行时并不显示,这是截图后为了方便描述加上去): (图2-4) 2.4 IDE绘制圆角矩形 在Sprite对象 Graphics 组件中,可以通过点击 +...

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

83. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 52%]

...atcher,具有事件派发功能。我们写个简单例子来看下用法: ```typescript class LayaSample { constructor() { //初始化引擎 Laya.init(1136, 640); var xhr: Laya.HttpRequest = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Laya.Event.COMPL...

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

84. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 52%]

...。 ​ LayaAir关于摄像头也有相应封装,下面我们来看下用法。 ```java package { import laya.device.media.Media; import laya.device.media.Video; import laya.display.Text; import laya.utils.Browser; import laya.utils.Handler; public class Main { private var video:Video; public f...

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

85. HttpRequest详解(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 52%]

...atcher,具有事件派发功能。我们写个简单例子来看下用法: ```javascript //初始化引擎 Laya.init(1136,640); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorH...

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

86. 使用graphics.drawPath方法绘制带边框圆角矩形出现问题 [ 52%]

...t;#ffffff"}); cuixueying • 2017-03-21 10:24 用这个吧,文档用法有问题,我们改下,加上边框话会出问题! bluesky • 2017-03-21 15:10 @cuixueying: 非常感谢! bluesky • 2017-03-21 09:40 路径问题在哪呢?这个路径可是官方实例哦。

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

87. 3D中摄像机绕物体旋转该如何实现? [ 51%]

...r3 = laya.d3.math.Vector3; import Quaternion = laya.d3.math.Quaternion; /* 用法: //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position =new Laya.Vector3(-8.2...

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

88. 官方案例里摄像机绕物体旋转脚本问题 [ 51%]

...r3 = laya.d3.math.Vector3; import Quaternion = laya.d3.math.Quaternion; /* 用法: //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position =new Laya.Vector3(-8.2...

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

89. CommandBuffer · LayaAir3.0文档 · LAYABOX [ 51%]

...,下面具体分析官方示例来更好理解一下CommandBuffer用法。 3.使用示例 3.1.BlurryGlass示例(毛玻璃示例) 效果图 示例原理 毛玻璃属于透明材质,后面三个胶囊体都是非透明材质,所以我们需要每帧将毛玻璃模型后面所有...

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

90. Uncaught Can not find class EffectAnimation undefined [ 51%]

...应该是底层无法注册runtime 所以找不到,造成这种情况用法,一般就是scene里面套scene之类,ts,和js 是无法这样操作。。。用代码操作或者用预制体都是可以。 2018-11-26 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...

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