Class SampleUtilities
Editor SampleUtilities utility class.
Inherited Members
Namespace: UnityEditor .Rendering.Utilities
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public static class SampleUtilities
Methods
CopyCommonSampleFolders(string[], string, string[])
Copy the folder named Common in each of the packages mentionned
Declaration
public static void CopyCommonSampleFolders(string[] packages, string parentFolderName, string[] foldersToRemove = null)
Parameters
Type | Name | Description |
---|---|---|
string[] | packages | A list of packages (com.unity..) |
string | parentFolderName | The name of the folder that is created locally |
string[] | foldersToRemove | A list of folders to delete after import to avoid conflicts |
CopyFilesInFolder(string, Dictionary<string, string>)
Copy the files in the dictionary in the parentFolderName Do not include "/" in parentFolderName filesToImport contains the remove filepath in the Key, and the local folder path in the Value, end it with a slash Example: Key: "Packages/com.unity.render-pipelines.core/Samples~/Common/Models/UnityMaterialBall.fbx" Value: "/Models/"
Declaration
public static void CopyFilesInFolder(string parentFolderName, Dictionary<string, string> filesToImport)
Parameters
Type | Name | Description |
---|---|---|
string | parentFolderName | The name of the folder that is created locally |
Dictionary<string, string> | filesToImport | The list of files that needs to be copied |