-
-
Notifications
You must be signed in to change notification settings - Fork 123
/
Copy pathshader_manifest_template.xml
78 lines (70 loc) · 3.79 KB
/
shader_manifest_template.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest schema-ver="1">
<guid>{{Mod GUID}}</guid>
<!-- Example: <guid>my.mod</guid> -->
<name>{{Mod name}}</name>
<!-- Example: <name>My Mod</name> -->
<version>{{Mod version}}</version>
<!-- Example: <version>1.2.3</version> -->
<author>{{Mod author}}</author>
<!-- Optional but recommended, example: <author>My Name</author> -->
<description>{{Mod description}}</description>
<!-- Optional, example: <description>A long text to introduce my mod.</description> -->
<website>{{Mod website}}</website>
<!-- Optional, example: <website>https://my.website.com</website> -->
<!-- Optional, game tag, if your mod can only run in a certain game, specify it. Otherwise, it is not necessary. -->
<!-- <game>Koikatsu Sunshine</game> -->
<!-- <game>Koikatsu</game> -->
<MaterialEditor>
<!-- A shader is defined by the following xml structure. -->
<!-- Example: <Shader Name="My/ShaderA" AssetBundle="my_shaders/shader_a.unity3d" Asset="asset_shader_a"> -->
<Shader Name="{{ShaderName}}" AssetBundle="{{asset_bundle_path.unity3d}}" Asset="{{asset_name}}">
<!-- Float property -->
<Property Name="{{PropertyName}}" Type="Float"/>
<!-- -->
<!-- Optional `Range` attribute -->
<Property Name="{{PropertyName}}" Type="Float" Range="{{min_value,max_value}}"/>
<!-- Example: <Property Name="PropertyName" Type="Float" Range="-1,1"/> -->
<!-- -->
<!-- Optional `DefaultValue` attribute -->
<Property Name="{{PropertyName}}" Type="Float" DefaultValue="{{value}}"/>
<!-- Example: <Property Name="PropertyName" Type="Float" DefaultValue="0"/> -->
<!-- -->
<!-- Optional `Hidden` attribute -->
<Property Name="{{PropertyName}}" Type="Float" Hidden="{{boolean}}"/>
<!-- Example: <Property Name="PropertyName" Type="Float" Hidden="True"/> -->
<!-- Color or vector property -->
<Property Name="{{PropertyName}}" Type="Color"/>
<!-- -->
<!-- Optional `DefaultValue` attribute -->
<Property Name="{{PropertyName}}" Type="Color" DefaultValue="{{value}}"/>
<!-- Example: <Property Name="PropertyName" Type="Color" DefaultValue="0,0.5,0.5,1"/> -->
<!-- -->
<!-- Optional `Hidden` attribute -->
<Property Name="{{PropertyName}}" Type="Color" Hidden="{{boolean}}"/>
<!-- Example: <Property Name="PropertyName" Type="Color" Hidden="True"/> -->
<!-- Texture property -->
<Property Name="{{PropertyName}}" Type="Texture"/>
<!-- -->
<!-- Optional `DefaultValue` and `DefaultValueAssetBundle` attributes -->
<Property Name="{{PropertyName}}" Type="Texture" DefaultValueAssetBundle="{{default_texture_asset_bundle_path.unity3d}}" DefaultValue="{{default_texture_asset_name}}"/>
<!-- Example: <Property Name="PropertyName" Type="Texture" DefaultValueAssetBundle="shader_assets.unity3d" DefaultValue="default_texture_a"/> -->
<!-- -->
<!-- Optional `Hidden` attribute -->
<Property Name="{{PropertyName}}" Type="Texture" Hidden="{{boolean}}"/>
<!-- Example: <Property Name="PropertyName" Type="Texture" Hidden="True"/> -->
<!-- Keyword -->
<Property Name="{{KEYWORD_NAME}}" Type="Keyword"/>
<!-- -->
<!-- Optional `DefaultValue` attribute -->
<Property Name="{{KEYWORD_NAME}}" Type="Keyword" DefaultValue="{boolean}"/>
<!-- Example: <Property Name="KEYWORD_NAME" Type="Keyword" DefaultValue="True"/> -->
<!-- -->
<!-- Optional `Hidden` attribute -->
<Property Name="{{KEYWORD_NAME}}" Type="Keyword" Hidden="{{boolean}}"/>
<!-- Example: <Property Name="KEYWORD_NAME" Type="Keyword" Hidden="True"/> -->
<!-- Notes -->
<!-- - "True", "TRUE", "true" are all acceptable values for boolean fields. -->
</Shader>
</MaterialEditor>
</manifest>