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

大约有 2,275 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0081 秒)

681. 设置cacheAs = bitmap时, drawCanvas 的一个bug [ 76%]

...果了。 this._drawRenderTexture(src._targets, x, y, width, height, null, 1.0, RenderTexture2D.flipyuv); this._curSubmit = SubmitBase.RENDERBASE;   这里当该bitmap节点下面的所有子节点隐藏时,为src._submits._length 等于0。 _targets并没有清空,而是用了上一次的绘...

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

682. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 76%]

...rnion(0, 0, 0, 0); Laya.Quaternion.createFromYawPitchRoll(0, 0* (Math.PI / 180), 0, newRot); this.pivot.transform.rotation = newRot; .............................................. if (e.keyCode == 97) { // console.log("a"); let newPos = new Laya.Vector3(this.block.transform.position.x + 0.1, this.bl...

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

683. 文本-多行输入 [ 76%]

...inputText.multiline = true; inputText.wordWrap = true; inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; inputText.padding = [2, 2, 2, 2]; inputText.bgColor = "#666666"; inputText.color = "#ffffff"; inputText.fon...

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

684. laya.ui.ViewStack [ 76%]

... 获取在场景中是否激活。 Node alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anchorY : NumberY锚点,值...

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

685. laya.ui.Radio [ 76%]

... 获取在场景中是否激活。 Node alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anchorY : NumberY锚点,值...

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

686. 新人求教!!! [ 76%]

...程序入口 class Main{ //需要切换的图片资源路径 private monkey1:string = "res/img/monkey1.png"; private monkey2:string = "res/img/monkey2.png"; //切换状态 private flag:boolean = false; private img:Laya.Sprite; constructor() {       //初始化引擎       Laya.init(1334,750); ...

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

687. 绘制形状时事件不触发 [ 76%]

绘制形状时事件不触发 function myRing(x,y,r1,color1,r2,color2) {         this.sprite = new Laya.Sprite();     this.sprite.on('mousedown', this, on_down);     this.sprite.graphics.drawCircle(x, y, r2, color2, color2, 2);     this.sprite.graphics.drawCircle(x, y, r1, color1, color...

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

688. laya.d3.core.particleshuriken.module.GradientAngularVelocity_API3.0 [ 76%]

...Defined in laya/d3/core/particleShuriKen/module/GradientAngularVelocity.ts:181 固定角速度。 Returns number constantMax get constantMax(): number Defined in laya/d3/core/particleShuriKen/module/GradientAngularVelocity.ts:237 最大随机双固定角速度。 Returns number constantMaxSeparate g...

来源: Laya3.0_api 发布时间: 20231115

689. Tween循环动画 [ 76%]

Tween循环动画 貌似没有直接支持循环动画? 2016-10-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 cuixueying 赞同来自: 使用Tween去循环播放动画 1、tween1的播放完成回调下播...

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

690. laya.ui.Dialog [ 76%]

...d Public Properties PropertyDefined By alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite anchorX : NumberX轴锚点,值为0-1Component anchorY : NumberY轴锚点,值为0-1Component autoSize : Boolean = false 指定是否自动...

来源: laya_api 发布时间: 20170929