Exemplo n.º 1
0
 private static void AddPropertyResource(StyleSheetBuilderHelper helper, string name, Object resource, string comment = "")
 {
     if (resource != null)
     {
         var resourcePath = EditorResources.GetAssetPath(resource);
         helper.AddPropertyResource(name, resourcePath, comment);
     }
     else
     {
         helper.AddProperty(name, StyleValueKeyword.None);
     }
 }