public void Import(IAssetImportEnvironment env) { foreach (AssetImportInput input in env.Input) { ContentRef <PythonScript> targetRef = env.GetOutput <PythonScript>(input.AssetName); if (targetRef.IsAvailable) { PythonScript target = targetRef.Res; string fileData = File.ReadAllText(input.Path); target.UpdateContent(fileData); env.AddOutput(targetRef, input.Path); } } }