Ejemplo n.º 1
0
        /// <summary>
        /// Copy basic properties to another component (helper function to help with Cloning).
        /// </summary>
        /// <param name="copyTo">Other component to copy values to.</param>
        /// <returns>The object we are copying properties to.</returns>
        protected override BaseComponent CopyBasics(BaseComponent copyTo)
        {
            ModelRenderer other = copyTo as ModelRenderer;

            other.MaterialOverride = MaterialOverride.Clone();
            other._entity.CopyMaterials(_entity.OverrideMaterialsDictionary);
            return(base.CopyBasics(other));
        }