Ujiyuki, who was born as Moroyoshi YAMANA's second son, inherited the position of Shugo of Hoki and Oki Provinces in 1389, since his elder brother did not succeed to the family estate.
山名師義の二男として生まれた氏之は兄の山名義幸が家督を継がなかったため、康応元年（1389年）に伯耆国・隠岐国2ヵ国の守護職を継承した。