EditorCoroutine.Start C# (CSharp) Method

Start() private method

private Start ( ) : void
return void
    private void Start()
    {
        EditorApplication.update += Update;
    }
    public void Stop()

Same methods

EditorCoroutine::Start ( IEnumerator routine ) : EditorCoroutine,

Usage Example

    private static void FetchWorlds(int offset = 0)
    {
        ApiWorld.FetchList(
            delegate(IEnumerable <ApiWorld> obj)
        {
            if (obj.FirstOrDefault() != null)
            {
                fetchingWorlds = EditorCoroutine.Start(() =>
                {
                    var l     = obj.ToList();
                    int count = l.Count;
                    SetupWorldData(l);
                    FetchWorlds(offset + count);
                });
            }
            else
            {
                fetchingWorlds = null;

                foreach (ApiWorld w in uploadedWorlds)
                {
                    DownloadImage(w.id, w.thumbnailImageUrl);
                }
            }
        },
            delegate(string obj)
        {
            Debug.LogError("Error fetching your uploaded worlds:\n" + obj);
            fetchingWorlds = null;
        },
            ApiWorld.SortHeading.Updated,
            ApiWorld.SortOwnership.Mine,
            ApiWorld.SortOrder.Descending,
            offset,
            PageLimit,
            "",
            null,
            null,
            null,
            "",
            ApiWorld.ReleaseStatus.All,
            null,
            null,
            true,
            false);
    }
All Usage Examples Of EditorCoroutine::Start