Boat Attack使用了Universal RP的许多新图形功能,可以用于探索 Universal RP 的使用方式和技巧。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

206 行
3.5 KiB

/* THIS FILE IS FROM GRAPHVIEW BUT CONTAINS MODIFICATIONS */
ShaderPort {
height: 24px;
align-items: center;
padding-left: 4px;
padding-right: 4px;
--port-color: rgb(200, 200, 200);
--disabled-port-color: rgb(70, 70, 70);
}
ShaderPort.input {
flex-direction: row;
}
ShaderPort.output {
flex-direction: row-reverse;
}
ShaderPort > #connector {
border-color: rgb(70, 70, 70);
background-color: #212121;
width: 8px;
height: 8px;
border-radius: 8px;
align-items: center;
justify-content: center;
margin-left: 4px;
margin-right: 4px;
border-left-width: 1px;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
}
ShaderPort > #connector:hover {
border-color: #f0f0f0
}
ShaderPort > #connector > #cap
{
background-color: #212121;
width: 4px;
height: 4px;
border-radius: 4px;
}
ShaderPort > #connector > #cap:hover
{
background-color: #f0f0f0;
}
ShaderPort > #connector.portHighlight {
border-color: #f0f0f0;
}
ShaderPort > #type {
color: #c1c1c1;
font-size: 11px;
height: 16px;
padding-left: 0;
padding-right: 0;
margin-left: 4px;
margin-right: 4px;
margin-top: 4px;
}
ShaderPort.input > #type {
-unity-text-align: middle-left;
}
ShaderPort.output > #type {
-unity-text-align:middle-right;
}
/*******************************/
/* ShaderPorts colors by types */
/*******************************/
ShaderPort.typeTexture {
--port-color:#FF8B8B;
}
ShaderPort.typeTexture2D {
/* Same as typeTexture */
--port-color:#FF8B8B;
}
ShaderPort.typeTexture2DArray {
/* Same as typeTexture */
--port-color:#FF8B8B;
}
ShaderPort.typeTexture3D {
/* Same as typeTexture */
--port-color:#FF8B8B;
}
ShaderPort.typeCubemap {
/* Same as typeTexture */
--port-color:#FF8B8B;
}
ShaderPort.typeGraphScript {
/* Todo: there is no such type in Unity atm */
--port-color:#E681BA;
}
ShaderPort.typeFloat4 {
--port-color:#FBCBF4;
}
ShaderPort.typeVector4 {
/* Same as typeFloat4 */
--port-color:#FBCBF4;
}
ShaderPort.typeQuaternion {
/* Same as typeFloat4 */
--port-color:#FBCBF4;
}
ShaderPort.typeColor {
/* Same as typeFloat4 */
--port-color:#FBCBF4;
}
ShaderPort.typeInt {
--port-color:#9481E6;
}
ShaderPort.typeInt32 {
/* Same as typeInt */
--port-color:#9481E6;
}
/* TEMP STUFF THAT SHOULD ACTUALLY STAY IN GRAPHVIEW */
ShaderPort.typeInt64 {
/* Same as typeInt */
/* todo we might want to differentiate that from int32 */
--port-color:#9481E6;
}
ShaderPort.typeBoolean {
--port-color:#9481E6;
}
ShaderPort.typeMatrix {
--port-color:#8FC1DF;
}
ShaderPort.typeMatrix4x4 {
/* Same as typeMatrix */
--port-color:#8FC1DF;
}
ShaderPort.typeGameObject {
--port-color:#8FC1DF;
}
ShaderPort.typeFloat {
--port-color:#84E4E7;
}
ShaderPort.typeFloat1 {
/* Same as typeFloat */
--port-color:#84E4E7;
}
ShaderPort.typeSingle {
/* Same as typeFloat */
--port-color:#84E4E7;
}
ShaderPort.typeDouble {
/* Same as typeFloat */
/* todo we might want to differentiate that from float */
--port-color:#84E4E7;
}
ShaderPort.typeFloat2 {
--port-color:#9AEF92;
}
ShaderPort.typeVector2 {
/* Same as typeFloat2 */
--port-color:#9AEF92;
}
ShaderPort.typeComponent {
--port-color:#C9F774;
}
ShaderPort.typeFloat3 {
--port-color:#F6FF9A;
}
ShaderPort.typeVector3 {
/* Same as typeFloat3 */
--port-color:#F6FF9A;
}
ShaderPort.typeString {
--port-color:#FCD76E;
}