This commit is contained in:
2025-11-13 17:40:28 +08:00
parent 962ab49609
commit 10156da245
5503 changed files with 805282 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
using System.Collections;
using System.IO;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor.AssetImporters;
using UnityEditor.Experimental.AssetImporters;
[ScriptedImporter(1, ".phf")]
public class PXR_PhfFile : ScriptedImporter
{
public override void OnImportAsset(AssetImportContext ctx)
{
var phfTxt = File.ReadAllText(ctx.assetPath);
var assetText = new TextAsset(phfTxt);
ctx.AddObjectToAsset("main obj", assetText);
ctx.SetMainObject(assetText);
}
}
#endif