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 |