Files
UniversalViewer/Assets/Eversoul/Scripts/CharacterAsset.cs
Katboi01 e5beb1c25a Eversoul support WIP
Updated line renderer material for handles
Handle fixes
Fixes
2024-04-23 12:25:12 +02:00

20 lines
444 B
C#

using System;
using System.IO;
[Serializable]
public class CharacterAsset : AssetSpawnData
{
public string Name;
public string Prefab;
public CharacterAsset(string assetName)
{
var split = assetName.Split(new char[] { '/', '.' });
ResourceName = assetName;
AssetType = AssetTypes.Character;
Prefab = Path.GetFileNameWithoutExtension(assetName);
Name = split[split.Length - 4];
}
}