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

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

21. 粒子系统-永恒之光 [ 88%]

...); camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var particleSprite3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/particle/ETF_Eternal_Light.lh"));class Particle_EternalLight { constructor() { Laya3D.init(0, 0...

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

22. 计时器-间隔循环 [ 88%]

... Text = Laya.Text; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var rotateTimeBasedText, rotateFrameRateBasedText; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = S...

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

23. 计时器-间隔循环 [ 88%]

...r = "#232628"; Stat.show(); this.setup(); } setup() { let vGap = 100; this.rotateTimeBasedText = this.createText("基于时间旋转", Laya.stage.width / 2, (Laya.stage.height - vGap) / 2); this.rotateFrameRateBasedText = this.createText("基于帧频旋转", this.rotateTimeBasedText.x, this.rotateT...

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

24. 天空-天空穹 [ 87%]

...amera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3( -30, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyDome = new Laya.SkyDome(); camera.sky = skyDome; skyDome.texture = Laya.Textur...

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

25. 自定义shader-简单shader [ 87%]

...ansform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); var customMaterial = new CustomMaterial(); layaMonkey.meshRender.sharedMaterial = customMaterial; var rotation = new Laya.Vector3(0, 0.01, 0); Laya.timer.frameLoop(...

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

26. 天空-天空盒 [ 87%]

...amera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3( -30, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //天空盒 var skyBox = new Laya.SkyBox(); camera.sky = skyBox; skyBox.textureCube =...

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

27. 设置完rotation之后直接报错 [ 87%]

设置完rotation之后直接报错 参数 out只有一个值正常么 在update 里旋转的角度 附件 : --> 2018-07-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 LT 赞同来自: 这样问问题你觉得...

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

28. sprite的rotation设置的位置不一样,子sprite的方向也不一样 [ 86%]

sprite的rotation设置的位置不一样,子sprite的方向也不一样 var s1 = new Laya.Sprite(); var s2 = new Laya.Sprite(); var s3 = new Laya.Sprite(); s1.width = 64; s1.height = 64; s1.pivot(32, 32); s1.rotation = 90; s2.addChild(s3); s1.addChild(s2);    var s1 = new Laya.Sprite(); var s2...

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

29. 关于Sprite设置rotation,在laya native上旋转效果不连续的问题 [ 86%]

关于Sprite设置rotation,在laya native上旋转效果不连续的问题 当给Sprite的rotation属性设置浮点型的数值时,在浏览器上运行效果很连续,不卡顿,但在native上时,会有不连续,一卡一 卡的现象。看了引擎中对Sprite的rotaion进行设置...

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

30. 射线检测-选取物体 [ 86%]

...); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.di...

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