Nomad.Editor.EditorDocument.Load C# (CSharp) Méthode

Load() public static méthode

public static Load ( string fileName, EditorDocument callback ) : bool
fileName string
callback EditorDocument
Résultat bool
        public static bool Load(string fileName, EditorDocument.LoadCompletedCallback callback)
        {
            string s = Path.GetDirectoryName(fileName) + Path.DirectorySeparatorChar;
            string fileName2 = Path.GetFileName(fileName);
            byte[] bytes = Encoding.UTF8.GetBytes(s);
            byte[] bytes2 = Encoding.UTF8.GetBytes(fileName2);
            EditorDocument.m_loadCompletedCallback = callback;
            return Binding.FCE_Document_Load(bytes, bytes2);
        }