docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FindFileInContentRoots

    FindFileInContentRoots(string)

    Searches for the given relative path within the configured content root directores.

    Declaration
    protected virtual string FindFileInContentRoots(string relativePath)
    Parameters
    Type Name Description
    string relativePath
    Returns
    Type Description
    string

    The full system path to the file if found, or null if file could not be found

    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)