Exemplo n.º 1
0
        public static void Load()
        {
            LoadSlotsIfNeeded();

            lock (m_Lock)
            {
                ScriptableObject.CreateInstance <LibrarySentinel>();
                m_ContextDescs    = LoadModels <VFXContext>();
                m_BlockDescs      = LoadModels <VFXBlock>();
                m_OperatorDescs   = LoadModels <VFXOperator>();
                m_ParametersDescs = m_SlotDescs.Select(s =>
                {
                    var desc = new VFXModelDescriptorParameters(s.Key);
                    return(desc);
                }).ToList();

                m_Loaded = true;
            }
        }