static void TryApplyExampleTextures(RepeatedRenderer3D bar) {
     var textureIcon = AssetDatabase.LoadAssetAtPath(
         AssetDatabase.GUIDToAssetPath("acf327304ae372942ab20012d2a0620e"), typeof(Texture2D)) as Texture2D;
     var textureSlot = AssetDatabase.LoadAssetAtPath(
         AssetDatabase.GUIDToAssetPath("7b43a19094446444c863a7e11811808d"), typeof(Texture2D)) as Texture2D;
     
     if (textureSlot != null && textureSlot != null) {
         bar.textureIcon = textureIcon;
         bar.textureSlot = textureSlot;
     } else {
         Debug.LogWarning("Failed to locate example textures. This is not something bad, but have you changed "
             + "your Energy Bar Toolkit directory location?");
     }
 }
Example #2
0
 static void TryApplyExampleTextures(RepeatedRenderer3D bar) {
     var textureIcon = AssetDatabase.LoadAssetAtPath(
         AssetDatabase.GUIDToAssetPath("acf327304ae372942ab20012d2a0620e"), typeof(Texture2D)) as Texture2D;
     var textureSlot = AssetDatabase.LoadAssetAtPath(
         AssetDatabase.GUIDToAssetPath("7b43a19094446444c863a7e11811808d"), typeof(Texture2D)) as Texture2D;
     
     if (textureSlot != null && textureSlot != null) {
         bar.textureIcon = textureIcon;
         bar.textureSlot = textureSlot;
     } else {
         Debug.LogWarning("Failed to locate example textures. This is not something bad, but have you changed "
             + "your Energy Bar Toolkit directory location?");
     }
 }
 static void TryApplyExampleTextures(RepeatedRenderer3D bar) {
     var textureIcon = AssetDatabase.LoadAssetAtPath(
         "Assets/Energy Bar Toolkit/Example/Textures/RepeatBar/heart.png", typeof(Texture2D)) as Texture2D;
     var textureSlot = AssetDatabase.LoadAssetAtPath(
         "Assets/Energy Bar Toolkit/Example/Textures/RepeatBar/heartSlot.png", typeof(Texture2D)) as Texture2D;
     
     if (textureSlot != null && textureSlot != null) {
         bar.textureIcon = textureIcon;
         bar.textureSlot = textureSlot;
     } else {
         Debug.LogWarning("Failed to locate example textures. This is not something bad, but have you changed "
             + "your Energy Bar Toolkit directory location?");
     }
 }