public static int FindBlendSystems(BlendSystemUser component)
    {
        blendSystems     = new List <Type>();
        blendSystemNames = new List <string>();

        blendSystems.Add(null);
        blendSystemNames.Add("None");

        foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies())
        {
            foreach (Type t in a.GetTypes())
            {
                if (t.IsSubclassOf(typeof(BlendSystem)))
                {
                    blendSystems.Add(t);
                    blendSystemNames.Add(LipSyncEditorExtensions.AddSpaces(t.Name));
                }
            }
        }

        if (component.blendSystem != null)
        {
            return(blendSystems.IndexOf(component.blendSystem.GetType()));
        }

        return(0);
    }
Exemplo n.º 2
0
    void FindBlendSystems()
    {
        blendSystems     = new List <System.Type>();
        blendSystemNames = new List <string>();

        blendSystems.Add(null);
        blendSystemNames.Add("None");

        foreach (System.Type t in typeof(BlendshapeBlendSystem).Assembly.GetTypes())
        {
            if (t.IsSubclassOf(typeof(BlendSystem)))
            {
                blendSystems.Add(t);
                blendSystemNames.Add(LipSyncEditorExtensions.AddSpaces(t.Name));
            }
        }

        if (lsTarget.blendSystem != null)
        {
            blendSystemNumber = blendSystems.IndexOf(lsTarget.blendSystem.GetType());
        }
    }