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

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

651. 求绘制遮罩会引起黑屏的解决办法 [ 54%]

...录宽度 this.width_x = this.progress.width + 3;   this.vmask = new Laya.Sprite(); this.vmask.pos(15,15); this.vmask.graphics.drawPie(0, 0, 20, -90, 270, "#000000"); this.progress.addChild(this.progressvalue); this.progressvalue.mask = this.vmask;   this.changevalue = function(value) { this.targe...

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

652. 滤镜功能是否可以把一张彩色图片完全做成单色的,看不到原来的图案,比如全灰 [ 54%]

...回复被折叠 要回复问题请先登录 发起人 嘿哈 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 请问有没有方法能够获取“鼠标是否处于按下状态”? [引擎优化]希望官方可以增加stencil功能 LayaAir 3D 有提供 3D 物理引擎功...

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

653. FlashBuilder中第一个程序“Hello Layabox”(ActionScript-LayaAir基础篇(AS3)-快速上手) [ 54%]

...名的ActionScript类,如果需要用到这个类的话需要把里边的Sprite包删除掉,因为是Flash原生的包,不删除的话会报错。* **步骤二**: 在名称栏输入HelloLayabox,点击“完成”新建一个ActionScript类。如图6-1所示 ![6](img/6.jpg) (图6-1) **步...

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

654. laya.ui.Image [ 54%]

... Events Packagelaya.uiClasspublic class ImageInheritanceImage UIComponent Sprite Node EventDispatcher ObjectSubclasses AdvImage Image 类是用于表示位图图像或绘制图形的显示对象。 Image和Clip组件是唯一支持异步加载的两个组件,比如img.skin = "abc/xxx.png",其...

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

655. 预制体模块 · LayaAir3文档 · LAYABOX [ 54%]

... (动图2-4) 不同的是,双击打开预制体3D,根节点是“Sprite3D”,也就是我们需要创建的3D精灵对象。同时图2-5右面是默认的IDE场景,用了IDE自带的天空盒 (图2-5) 2.3 修改预制体编辑场景 开发者可以通过如下的方式来更换3D预...

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

656. WaterPrimaryMaterial的使用 [ 54%]

...demo吗? 我这里怎么调都是单一色块呢?   var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(10, 10))) as Laya.MeshSprite3D; // box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); // var material: Laya.BlinnPhongMaterial = new Laya.BlinnPh...

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

657. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 54%]

...scene); //获取cube对象 var cube = scene.getChildByName("Cube") as Laya.Sprite3D; //添加组件(脚本) var _script = cube.addComponent(SceneScript) as SceneScript; //label用于显示 var _lab = new Laya.Label(); _lab.text = "test"; _lab.height = 100; _lab.width = 100; _lab.fontSize = 40; _lab....

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

658. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

... (动图2-4) 不同的是,双击打开预制体3D,根节点是“Sprite3D”,也就是我们需要创建的3D精灵对象。同时图2-5右面是默认的IDE场景,用了IDE自带的天空盒 (图2-5) 2.3 修改预制体编辑场景 开发者可以通过如下的方式来更换3D预...

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

659. 请大家帮助优化一下这个抛物线的代码 [ 54%]

... https://my.oschina.net/u/659068/blog/1564002  class Ball extends Laya.Sprite{ private static cached:boolean = false; private body:Laya.Sprite; constructor(){ super(); this.init(); } public init():void{ if(!Ball.cached){ Ball.cached = true; this.body = new Laya.Sprite(); this.body.loadImage("war/b...

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

660. laya.ui.FontClip [ 54%]

...ckagelaya.uiClasspublic class FontClipInheritanceFontClip Clip UIComponent Sprite Node EventDispatcher Object 字体切片,简化版的位图字体,只需设置一个切片图片和文字内容即可使用,效果同位图字体 使用方式:设置位图字体皮肤skin,设置皮肤对应...

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