大约有 458 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.2364 秒)
...用帧率甚至动态更改帧率有利于改进手机耗电。 Hierarchy Sprite Stage Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize canvasDegree canvasRotation designHeight designWidth focus hitTestPrior mouseThrough name renderingEnabled screenAdap...
来源: Laya3.0_api 发布时间: 20231115
...lass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { let opendata = new Laya.OpenDataContextView(); Laya.stage.add...
来源: Laya3.0_文档 发布时间: 20251010
...eader(); reader.readAsDataURL(imgBlob); reader.onload = (e)=> { let sp1:Sprite = new Sprite(); //加载Base64图片数据 sp1.loadImage(e.target.result as string); this.owner.addChild(sp1); } }); 上述代码中,用 Laya.loader.fetch 加载图片二进制数据,根据自定义的规则,可...
来源: Laya3.0_文档 发布时间: 20230303
..." Particle2D Class Particle2D Particle2D 类是2D粒子播放类 Hierarchy Sprite Particle2D Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoPlay autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHie...
来源: Laya3.0_api 发布时间: 20231115
...用等待编译什么的。 Laya3.0 2d粒子拖尾 2d三角面拖尾 运用Sprite的属性blendMode为"destination-out"时得到黑圈,与引擎示例中的效果不同,想知道为什么 问题状态 最新活动: 2025-03-06 18:11 浏览: 5003 关注: 3 人 xxp • 2025-03-05 18:14 我们测试...
来源: Laya_社区 发布时间: 20250305
...ron 赞同来自: /** * <p>绘制 当前<code>Sprite</code> 到 <code>Canvas</code> 上,并返回一个HtmlCanvas。</p> * <p>绘制的结果可以当作图片源,再次绘制到其他Sprite里面,示例:</p> ...
来源: Laya_社区 发布时间: 20180626
...default class CameraControll extends Laya.Script { @property( { type: Laya.Sprite3D } ) public target: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;//相机与目标的竖直高度参数 public distanceAway: number = 10;//相机与目标的水平距离参数 public smo...
来源: Laya3.0_文档 发布时间: 20251010
...3.1 简介3.2 优化方法3.3 其它类别4、NodeNums的数值说明5、Sprite3D数值说明6、TriangleFace数值说明7、RenderNode数值说明8、SkinRenderNode数值说明9、ParticleRenderNode数值说明10、FrustumCulling数值说明11、GPUMemory数值说明12、TextrueMemory数值说明13...
来源: Laya3.0_文档 发布时间: 20251010
...oor(){ Floor.__super.call(this); } //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; _proto.init = function(type){ //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } //在地板上面添加物...
来源: Laya_社区 发布时间: 20160728
...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _parseEscapeChars _parseEscapeChars: boolean Inherited from Text._parseEscapeChars Defined in laya/display/Text.ts:202 是否将字符串中的\n,\t转换为实际功能的字符 _scene _scene: Node Inherited fr...
来源: Laya3.0_api 发布时间: 20231115