您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
56 行
1.5 KiB
56 行
1.5 KiB
using System;
|
|
using System.Text;
|
|
|
|
namespace UnityEditor.ShaderGraph
|
|
{
|
|
/* public class CubemapPropertyChunk : PropertyChunk
|
|
{
|
|
public enum ModifiableState
|
|
{
|
|
Modifiable,
|
|
NonModifiable
|
|
}
|
|
|
|
private readonly Cubemap m_DefaultCube;
|
|
private readonly ModifiableState m_Modifiable;
|
|
|
|
public CubemapPropertyChunk(string propertyName, string propertyDescription, Cubemap defaultTexture, HideState hidden, ModifiableState modifiableState)
|
|
: base(propertyName, propertyDescription, hidden)
|
|
{
|
|
m_DefaultCube = defaultTexture;
|
|
m_Modifiable = modifiableState;
|
|
}
|
|
|
|
public override string GetPropertyString()
|
|
{
|
|
var result = new StringBuilder();
|
|
if (hideState == HideState.Hidden)
|
|
result.Append("[HideInInspector] ");
|
|
if (m_Modifiable == ModifiableState.NonModifiable)
|
|
result.Append("[NonModifiableTextureData] ");
|
|
|
|
result.Append(propertyName);
|
|
result.Append("(\"");
|
|
result.Append(propertyDescription);
|
|
result.Append("\", Cube) = \"");
|
|
result.Append("");
|
|
result.Append("\" {}");
|
|
return result.ToString();
|
|
}
|
|
|
|
public Texture defaultCube
|
|
{
|
|
get
|
|
{
|
|
return m_DefaultCube;
|
|
}
|
|
}
|
|
public ModifiableState modifiableState
|
|
{
|
|
get
|
|
{
|
|
return m_Modifiable;
|
|
}
|
|
}
|
|
}*/
|
|
}
|