This commit is contained in:
2025-04-23 12:56:20 +08:00
parent b47e96ea9e
commit 8f2e12622d
4 changed files with 56 additions and 26 deletions
@@ -1,4 +1,6 @@
using System;
using System.Collections.Generic;
using AibisDream.Framework;
using AibisDream.Utility;
using Newtonsoft.Json;
using UnityEngine;
@@ -123,8 +125,13 @@ namespace AibisDream.FixSystem
// 设置Line的参数
dotLine.sortingLayerName = ConstRef.FixMiddleLayer;
dotLine.sortingOrder = 4;
// dotLine.materials = new[] { };
Addressables.LoadAssetAsync<Material>(ConstRef.DotLineMaterialName);
dotLine.materials = new[] { ResourceKit.LoadAssetSync<Material>(ConstRef.DotLineMaterialName) };
dotLine.textureMode = LineTextureMode.Tile;
dotLine.loop = true;
// 设置line的周长
_targetSpriteRenderer.sprite.GetPhysicsShape(0, new List<Vector2>());
return dotLine;
}