docs.unity3d.com
    Show / Hide Table of Contents

    Class GhostCodeGen

    Inheritance
    System.Object
    GhostCodeGen
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Unity.NetCode.Editor
    Syntax
    public class GhostCodeGen

    Constructors

    GhostCodeGen(String)

    Declaration
    public GhostCodeGen(string template)
    Parameters
    Type Name Description
    System.String template

    Methods

    GenerateFile(String, String, String, Dictionary<String, String>, GhostCodeGen.Batch)

    Declaration
    public void GenerateFile(string assetPath, string rootPath, string fileName, Dictionary<string, string> replacements, GhostCodeGen.Batch batch = null)
    Parameters
    Type Name Description
    System.String assetPath
    System.String rootPath
    System.String fileName
    System.Collections.Generic.Dictionary<System.String, System.String> replacements
    GhostCodeGen.Batch batch

    GenerateFragment(String, Dictionary<String, String>, GhostCodeGen, String, String)

    Declaration
    public void GenerateFragment(string fragment, Dictionary<string, string> replacements, GhostCodeGen target = null, string targetFragment = null, string extraIndent = null)
    Parameters
    Type Name Description
    System.String fragment
    System.Collections.Generic.Dictionary<System.String, System.String> replacements
    GhostCodeGen target
    System.String targetFragment
    System.String extraIndent

    GetPrefabAssetPath(GameObject)

    Declaration
    public static string GetPrefabAssetPath(GameObject go)
    Parameters
    Type Name Description
    GameObject go
    Returns
    Type Description
    System.String
    Back to top
    Copyright © 2025 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 02 April 2025