| Name |
Effect |
Required |
Example |
| shader_is_using_thry_editor |
Tell Thry Editor you are using it |
Yes |
[HideInInspector] shader_is_using_thry_editor ("", Float) = 0 |
| shader_master_label |
Display name customizes the gui header |
No |
[HideInInspector] shader_master_label ("<color =#ff0000ff>❤</color> <color =#000000ff>Poiyomi Toon Shader V4.0</color> <color =#ff0000ff>❤</color>", Float) = 0 |
| shader_presets |
Display name specifies preset file |
No |
[HideInInspector] shader_presets ("poiToonPresets", Float) = 0 |
| shader_properties_label_file |
If specified the editor tries to load property's display names out of this file |
No |
[HideInInspector] shader_properties_label_file ("poiToonLabels", Float) = 0 |
| shader_properties_locale |
Is used to specify a locale file and locale selector. Specify "locale::<string>" anywhere to load a string from the locale file. |
No |
shader_properties_locale ("locale::locale--{file_name:locale_file_name}", Float) = 0 |
| footer_<string> |
Adds a footer button to the bottom of the ui. Multiple footers can be added to one shader. The displayname has to be a ButtonData object |
No |
[HideInInspector] footer_github ("{text:Github,action:{type:URL,data:https://github.com/thryrallo/thryeditor}}", Float) = 0
[HideInInspector] footer_discord ("{texture:{name:discord-icon,height:40},action:{type:URL,data:https://discord.gg}}", Float) = 0
|
|
| DSGI |
add this property for double sided illumination settings to be shown |
No |
[HideInInspector] DSGI ("", Float) = 0 |
| Instancing |
add this property for instancing variants settings to be shown |
No |
[HideInInspector] Instancing ("", Float) = 0 |
| LightmapFlags |
add this property for lightmap flags settings to be shown |
No |
[HideInInspector] LightmapFlags ("", Float) = 0 |
|
| m_<string> |
starts a dropdown menu. all properties underneath, till the next menu is specified, are in this menu |
No |
[HideInInspector] m_mainOptions ("Main", Float) = 0 |
| m_start_<string> |
starts a dropdown menu. all properties underneath, till this menu's end is specified, are in this menu. use if you want to layer menus. |
No |
[HideInInspector] m_start_Alpha ("Alpha Options", Float) = 0 |
| m_start_<string> |
ends a dropdown menu that has been started with m_start_<string> |
No |
[HideInInspector] m_end_Alpha ("", Float) = 0 |
| g_start_<string> |
starts a group. properties are grouped together. not visible to the user. can be used to hide multiple properties with one condition specification. |
No |
[HideInInspector] g_start_blending ("--{condition_show:{type:PROPERTY_BOOL,data:_DisplayBlending}}", Float) = 0 |
| g_end_<string> |
ends a group that has been started with g_start_<string> |
No |
[HideInInspector] g_start_blending ("", Float) = 0 |
| Drawer Name |
Effect |
Extra Property Options |
Example |
| [SmallTexture] |
Creates a texture field that will always be small |
|
[SmallTexture]_MainTex("Main Texture",2D)= "white" { } |
| [BigTexture] |
Creates a texture field that will always be big |
|
[BigTexture]_MainTex("Main Texture",2D)= "white" { } |
| [StylizedBigTexture] |
Creates a texture field that will always be big but stylized differently |
|
[StylizedBigTexture]_MainTex("Main Texture",2D)= "white" { } |
| [Gradient] |
Creates a texture field with a gradient field next to it.
Gradient is automatically converted to texture.
|
|
[Gradient]_ColorRamp("Color Ramp",2D)= "white" { } |
| [MultiSlider] |
Creates a slider for a range.
Is used with a vector property.
x and y are the slider values. z is slider minimum. w is slider maximum.
|
|
[MultiSlider]_Slider("Multi Slider",Vector)= (0.1,0.9,0,1) |
| [TextureArray] |
Creates a texture field with a gradient field next to it |
|
[TextureArray]_FlipbookTexArray ("Texture Array", 2DArray) = "" {} |
| [Vector2] |
Creates a texture field with a gradient field next to it |
|
[Vector2]_Vector("Vector with 3 values",Vector)= (0,0,0,0) |
| [Vector3] |
Creates a texture field with a gradient field next to it |
|
[Vector3]_Vector("Vector with 3 values",Vector)= (0,0,0,0) |
| [Curve] |
Creates a texture field with a gradient field next to it |
|
[Curve]_ColorCurve("Curve",2D)= "white" { } |
| [Helpbox] |
Creates an info box |
|
[Helpbox]_MainHelpbox("This is the text inside the info box",Float)= 0 |
| Name |
Value Type |
Effect |
Drawer Specific |
Example |
| offset |
int |
adds an extra x-offset to the property |
No |
_Tex("Texture--{offset:1}",2D) = "white" { } |
| hover |
string |
text that is shown when hovering above property |
No |
_Tex("Texture--{hover:use this texture for albedo}",2D) = "white" { } |
| altClick |
Action |
performs an action when holding alt down and clicking on property |
No |
_Tex("Texture--{altClick:{type:URL,data:http://thryrallo.de}}",2D) = "white" { } |
| condition_show |
Condition |
let's you define a condition that has to be true for this property to be shown in the ui |
No |
_Tex("Texture--{condition_show:{type:PROPERTY_BOOL,data:_ForceOpaque==1}}",2D) = "white" { } |
| condition_enable |
Condition |
let's you define a condition that has to be true for this property to be enabled |
No |
_Tex("Texture--{condition_enable:{type:PROPERTY_BOOL,data:_ForceOpaque==1}}",2D) = "white" { } |
| button_right |
Button |
let's you define a button that is shown on the side of a dropdown header |
Yes, only headers |
_Tex("Texture--{button_right:{text:Test Button,action:{type:URL,data:https://github.com/Thryrallo/thryeditor},hover:hover text,condition_show:{type:PROPERTY_BOOL,data:_ShowButtonOnMenus}}}",2D) = "white" { } |
| frameCountProp |
string |
if this is set the editor trys to assign the frame count/depth the the value if the specified Property after creating a texture array |
[TextureArray] |
[TextureArray]_FlipbookTexArray ("Texture Array--{frameCountProp:_FlipbookTotalFrames}", 2DArray) = "" {} |
| image |
ImageData |
Defines the create image size and to which channel the curve is written. |
[Curve] |
[Curve]_MainTex ("Texture --{image:{width:256,height:16,channel:b}}", 2D) = "white" { } |
| texture |
TextureData |
Defines the texture settings for created gradients. |
[Gradient] |
[Gradient]_ColorRamp ("Gradient --{texture:{width:256,height:16,filterMode:Point,wrapMode:Clamp}}", 2D) = "white" { } |
| force_texture_options |
bool |
Default: false. Set this to true to hide the texture options and force your defined texture settings. |
[Gradient] |
[Gradient]_ColorRamp ("Gradient --{texture:{width:256,height:16,filterMode:Point,wrapMode:Clamp},force_texture_options:true}", 2D) = "white" { } |
| reference_properties |
string[] |
Default: null. specified properties will be drawn in texture foldout menu |
Texture |
_Texture("Panning Texture --{reference_properties:[_PanSpeed,_PanUV]}", 2D) = "white" { } |
| reference_property |
string |
Specifies a property by it's name. If defined the TextureArray Creator will fill this property with the texture array depth after creating an array from a gif or multiple images. |
[TextureArray] |
[TextureArray]_Texture("Animated Texture --{reference_property:_FrameCount}", 2DArray) = { } |
Condition
Variables:
| Name |
Value Type |
required |
default |
| type |
ConditionType |
Yes |
None |
| data |
string |
If type!=AND && type!=OR yes |
|
| condition1 |
Condition |
if type==AND || type==OR yes |
null |
| condition2 |
Condition |
if type==AND || type==OR yes |
null |
Data will have different meanings depending on type
Data
Useable Comparators: ==,!=,>,<
| type |
data value |
example |
| PROPERTY_BOOL |
<PropertyName>(<Comparator><value>)? |
{type:PROPERTY_BOOL,data:_ForceOpaque} or {type:PROPERTY_BOOL,data:_ForceOpaque==0} |
| EDITOR_VERSION |
<Comparator><value> |
{type:EDITOR_VERSION,data:>0.17} #checks if installed editor version > 0.17 |
| VRC_SDK_VERSION |
<Comparator><value> |
{type:VRC_SDK_VERSION,data:>0.17} #checks if installed vrc sdk version > 0.17 |
| TEXTURE_SET |
<PropertyName> |
{type:TEXTURE_SET,data:_ToonRamp} #checks if texture _ToonRamp is set |
| DROPDOWN |
<PropertyName><Comparator><value> |
{type:DROPDOWN,data:_LightingType==2} #checks if property _LightingType has enum 2 selected |
Enum: ConditionType
States:
| Value |
Effect |
| AND |
Combines two conditions with && |
| OR |
Combines two conditions with || |
| PROPERTY_BOOL |
checks agains the float value of a property |
| EDITOR_VERSION |
checks agains the version number of ThryEditor |
| VRC_SDK_VERSION |
checks agains the version number of the VRC SDK |