Axiom.Components.Terrain.TerrainMaterialGenerator.SetActiveProfile C# (CSharp) Method

SetActiveProfile() public method

Set the active profile by name.
public SetActiveProfile ( string name ) : void
name string name of the profile
return void
        public virtual void SetActiveProfile(string name)
        {
            if (mActiveProfile == null || mActiveProfile.Name != name)
            {
                for (int i = 0; i < mProfiles.Count; ++i)
                {
                    if (mProfiles[i].Name == name)
                    {
                        ActiveProfile = mProfiles[i];
                        break;
                    }
                }
            }
        }
        /// <summary>