大约有 7,352 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0130 秒)
Laya_社区(6641) Laya2.0_文档(183) Laya3.0_api(118) laya_api(102) Laya2.0_api(90) Laya_示例(86) Laya3.0_文档(75) Laya2.0_示例(57)
...cumentationAll Packages | All Classes | Index | Frames No Frames MeshSprite3DProperties | Methods | Events | Constants Packagelaya.d3.coreClasspublic class MeshSprite3DInheritanceMeshSprite3D RenderableSprite3D Sprite3D ComponentNode Node EventDispatcher ObjectSubclasses MeshTerrainSprite3...
来源: laya_api 发布时间: 20170929
移动Sprite时,边缘闪烁 var lastTimestamp = 0; var count = 0; var totale = 0; Laya.timer.frameLoop(1, this, function test() { var deltaTime = new Date().getTime() - lastTimestamp; lastTimestamp = new Date().getTime(); count++; totale += deltaTime; this.x += this.speed_x*deltaTime; this.y += ...
来源: Laya_社区 发布时间: 20170920
如果更换Sprite图片 statusBar = new Sprite(); statusBar.loadImage("7seedkin220161218094632691ru.png@120w.png",0,0, 60,60); statusBar.x = 20; statusBar.y = -70; this.addChild(statusBar); 如何通过动态事件更换Sprite图片? 2017-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170112
...设置filter,无法更新到每个子节点,web是ok的 对一个包含sprite和text的sprite节点,设置filter,比如加一个gray。 在web上,该节点本身及其子节点的sprite和text都可以被正常灰化。 在native上,只有该节点可以被正常灰化,sprite和text都...
来源: Laya_社区 发布时间: 20170717
...static] 根据指定的 json 数据创建节点对象。 比如: { "type":"Sprite", "props":{ "x":100, "y":50, "name":"item1", "scale":[2,2] }, "customProps":{ "x":100, "y":50, "name":"item1", "scale":[2,2] }, "child":[ { "type":"Text", "props":{ "text":"this is a test", "var":"label", "rumtime":"" ...
来源: Laya2.0_api 发布时间: 20190513
...stage.on(Event.MOUSE_DOWN, this, this.onDown); } createCoralRect() { const Sprite = Laya.Sprite, Event = Laya.Event; let coralRect = new Sprite(); coralRect.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height / 2, "#FF7F50"); //设置名称 coralRect.name = "珊瑚色容器"; coralRect.size(...
来源: Laya2.0_示例 发布时间: 20250223
...TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Sprite_ScreenShot { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; this.btnArr = ["res/threeDimen/ui/button.png", "res/threeDimen/ui/button.png", "res/threeDimen/ui/button.png"]; this.nam...
来源: Laya2.0_示例 发布时间: 20250223
# Sprite3D的概述 ###### *version :2.7.0beta Update:2020-6-12* Sprite3D 是3D的基本节点对象,是LayaAir3D中所有节点类型的父类,包含很多3D精灵基本的功能属性,除此之外还是所有3D组件和脚本的容器。 **Sprite3D 属性和功能介绍** - 1.唯一id ```types...
来源: Laya2.0_文档 发布时间: 20210715
...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加...
来源: Laya3.0_api 发布时间: 20231115
创建的sprite3d无法直接通过position修改坐标 遇到个问题,加载的模型如果父物体是scene的话,就无法直接通过position或者localPosition修改模型坐标,但是手动创建一个空sprite3d,然后把加载的模型放在这个空sprite3d下,就可以通过移动...
来源: Laya_社区 发布时间: 20180801