Affordance links perception to action, as it links a creature to its environment. It links both to cognition, because it relates to meaning. Meaning is in the world, as much as in the mind, because meaning involves the appropriateness of an organism’s actions to its surroundings
Eleanor Gibson, in Gibson, E. J. (1988). Exploratory behavior in the development of perceiving, acting, and the acquiring of knowledge. Annual review of psychology, 39(1), 1–42.