Sample project to showcase the use of UI Toolkit for Runtime based on the Unity Royale project.
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

45 行
997 B

.card {
width: 104px;
height: 115px;
-unity-font: url('/Assets/UI/Fonts/LilitaOne-Regular.ttf');
position: absolute;
}
.frame {
background-image: url('/Assets/UI/Elements/ui_card_front.png');
flex-grow: 1;
overflow: hidden;
-unity-background-scale-mode: scale-to-fit;
justify-content: flex-end;
}
.stats {
flex-direction: row;
justify-content: space-between;
}
.badge {
-unity-background-scale-mode: scale-to-fit;
width: 42px;
height: 33px;
-unity-text-align: middle-center;
color: rgba(255, 255, 255, 255);
}
.attack-badge {
background-image: url('/Assets/UI/Elements/icon_dmg.png');
padding-left: 4px;
padding-top: 5px;
}
.health-badge {
background-image: url('/Assets/UI/Elements/icon_health.png');
}
.image {
background-image: url('/Assets/UI/CardArt/Archers.png');
margin-left: 11%;
margin-right: 11%;
margin-top: 11%;
margin-bottom: 11%;
}