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

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

51. 输入设备-摇一摇 [ 79%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Text = Laya.Text; var Shake = Laya.Shake; var Browser = Laya.Browser; var Handler = Laya.Handler; var picW = 824; var picH = 484; var console; var shakeCount = 0; (function() { ...

来源: Laya_示例 发布时间: 20240930

52. HTML文本 · LayaAir3.0文档 · LAYABOX [ 79%]

...src='res/boy.png'></img>"; */ export class HTMLDivElement extends Sprite { 下面我们通过一些示例代码来看看运行效果: 3.1 同一个文本中设置Bold、Font、FontSize、Color、下划线 【注意:目前不支持斜体、描边、span标签内嵌的方式】 示例如...

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

53. 同一类型光源互斥的问题报告 [ 79%]

...ew Laya.Vector3(-1, -1, -1); light4.color = new Laya.Vector3(1, 1, 0); var sprite3D = scene.addChild(new Laya.Sprite3D()); //添加自定义模型 var box = sprite3D.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1))); box.transform.position = new Laya.Vector3(0, 0.5, 0); var material = new L...

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

54. 分享一个Shader版的CoolDown实现 [ 79%]

... 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.progress); Laya.stage.addChild(this.spe); ----------------------源码-------------------------- imp...

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

55. laya.filters.ColorFilter [ 78%]

...其他效果。您可以将滤镜应用于任何显示对象(即,从 Sprite 类继承的对象)。 注意:对于 RGBA 值,最高有效字节代表红色通道值,其后的有效字节分别代表绿色、蓝色和 Alpha 通道值。 Public Properties Hide Inherited Public Properties Show...

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

56. Native iOS 使用系统默认字体 [ 78%]

...答(最新版本:1.7.16) TS项目使用matter.js库无智能提示 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale LayaAirIDE下如何使用mask? 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 微信小游戏:HTMLDivElement的使...

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

57. 渲染性能实例问题 [ 78%]

...oc/?nav=zh-js-3-2-2 从以上找到实例, 这代代码不能跑。我看sprite里面没有addChild 应该怎么做的呢?Sprite 不可以addChild. Laya.init(550,400,Laya.WebGL);Laya.Stat.show();var textBox = new Laya.Sprite();for(var i=0;i<10000;i++){txt=new Text();txt.text=(Math.random()*10...

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

58. 输入设备-摇一摇 [ 78%]

...Pic(); this.showConsoleText(); this.startShake(); } showShakePic() { const Sprite = Laya.Sprite; let shakePic = new Sprite(); shakePic.loadImage("res/inputDevice/shake.png"); Laya.stage.addChild(shakePic); } showConsoleText() { const Text = Laya.Text; console = new Text(); Laya.stage.addChild(consol...

来源: Laya2.0_示例 发布时间: 20240930

59. shader 问题[关闭] [ 78%]

...a.WebGLContext.FLOAT, false, _vlen, 4 * Laya.CONST3D2D.BYTES_PE] } }     sprite.customRender = function (context, x, y) {       context.ctx.setIBVB(x, y, this.iBuffer, this.vBuffer, this.iNum, null, this.customeShader, this.shaderValue, 0, 0)     } 1.如果我要 动态的,比如随时间...

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

60. layaair1.7.9 beta版,给图片加上颜色滤镜,效果有问题 [ 78%]

...以的。附上代码,麻烦大神看看,谢谢了var spr:laya.display.Sprite = new laya.display.Sprite(); spr.texture = tx; Laya.stage.addChild(spr); spr.x = 300; spr.y = 100; var color:Array = ; color.push( 0, 0, 0, 0, 255, 0, 0, 0, 0, 255, 0, 0, 0, 0, 255, 0, 0, 0, 1, 0); var filter:ColorFilt...

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