1 2 3 4 5 6 7 8 9 |
[ScriptedImporter( 1, "lua" )] public class SrtImporter : ScriptedImporter { public override void OnImportAsset( AssetImportContext ctx ) { TextAsset subAsset = new TextAsset( File.ReadAllText( ctx.assetPath ) ); ctx.AddObjectToAsset( "text", subAsset ); ctx.SetMainObject( subAsset ); } } |
- 本文固定链接: http://www.u3d8.com/?p=2807
- 转载请注明: 网虫虫 在 u3d8.com 发表过