CSL.NetworkExtensions.Framework.NetInfoExtensions.SetMeshes C# (CSharp) Метод

SetMeshes() публичный статический Метод

public static SetMeshes ( this segment, string newMeshPath, string newLODMeshPath = null ) : NetInfo.Segment
segment this
newMeshPath string
newLODMeshPath string
Результат NetInfo.Segment
        public static NetInfo.Segment SetMeshes(this NetInfo.Segment segment, string newMeshPath, string newLODMeshPath = null)
        {
            segment.m_mesh = AssetManager.instance.GetMesh(newMeshPath);

            if (newLODMeshPath != null)
            {
                segment.m_lodMesh = AssetManager.instance.GetMesh(newLODMeshPath);
            }

            return segment;
        }
    }