docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SampleUtilities

    Editor SampleUtilities utility class.

    Inheritance
    object
    SampleUtilities
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)