It depends what you are replacing the material on. For example, if you’re swapping the material inside a blueprint, it may revert to whatever is hardcoded as soon as you run it. Can you take a screenshot of what you are trying to do and post it here? And what you’re swapping the material to?