C# Class ElevatedTrainStationTrack.Util

Show file Open project: earalov/Skylines-ElevatedTrainStationTrack

Public Methods

Method Description
ClonePrefab ( NetInfo originalPrefab, string newName, Transform parentTransform ) : NetInfo
GetAllFieldsFromType ( this type ) : IEnumerable
GetFieldByName ( this type, string name ) : FieldInfo
LoadMesh ( string fullPath, string meshName ) : Mesh

Method Details

ClonePrefab() public static method

public static ClonePrefab ( NetInfo originalPrefab, string newName, Transform parentTransform ) : NetInfo
originalPrefab NetInfo
newName string
parentTransform UnityEngine.Transform
return NetInfo

GetAllFieldsFromType() public static method

public static GetAllFieldsFromType ( this type ) : IEnumerable
type this
return IEnumerable

GetFieldByName() public static method

public static GetFieldByName ( this type, string name ) : FieldInfo
type this
name string
return System.Reflection.FieldInfo

LoadMesh() public static method

public static LoadMesh ( string fullPath, string meshName ) : Mesh
fullPath string
meshName string
return UnityEngine.Mesh