Switch texture and sound references to attributes.