static void TryApplyExampleTextures(SequenceRenderer3D bar) {
     var gridTexture = AssetDatabase.LoadAssetAtPath(
         "Assets/Energy Bar Toolkit/Example/Textures/SequenceBar/Grid/sequenceBarTexture.png", typeof(Texture2D)) as Texture2D;
     
     if (gridTexture != null) {
         bar.gridTexture = gridTexture;
         bar.gridWidth = 7;
         bar.gridHeight = 9;
         bar.gridFrameCountManual = true;
         bar.gridFrameCount = 59;
     } 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(SequenceRenderer3D bar) {
     var gridTexture = AssetDatabase.LoadAssetAtPath(
         "Assets/Energy Bar Toolkit/Example/Textures/SequenceBar/Grid/sequenceBarTexture.png", typeof(Texture2D)) as Texture2D;
     
     if (gridTexture != null) {
         bar.gridTexture = gridTexture;
         bar.gridWidth = 7;
         bar.gridHeight = 9;
         bar.gridFrameCountManual = true;
         bar.gridFrameCount = 59;
     } 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(SequenceRenderer3D bar) {
     var gridTexture = AssetDatabase.LoadAssetAtPath(
         AssetDatabase.GUIDToAssetPath("92439f7267aa24d4ba8eb0bedaf261db"), typeof(Texture2D)) as Texture2D;
     
     if (gridTexture != null) {
         bar.gridTexture = gridTexture;
         bar.gridWidth = 7;
         bar.gridHeight = 9;
         bar.gridFrameCountManual = true;
         bar.gridFrameCount = 59;
     } else {
         Debug.LogWarning("Failed to locate example textures. This is not something bad, but have you changed "
                          + "your Energy Bar Toolkit directory location?");
     }
 }
Example #4
0
 static void TryApplyExampleTextures(SequenceRenderer3D bar) {
     var gridTexture = AssetDatabase.LoadAssetAtPath(
         AssetDatabase.GUIDToAssetPath("92439f7267aa24d4ba8eb0bedaf261db"), typeof(Texture2D)) as Texture2D;
     
     if (gridTexture != null) {
         bar.gridTexture = gridTexture;
         bar.gridWidth = 7;
         bar.gridHeight = 9;
         bar.gridFrameCountManual = true;
         bar.gridFrameCount = 59;
     } else {
         Debug.LogWarning("Failed to locate example textures. This is not something bad, but have you changed "
                          + "your Energy Bar Toolkit directory location?");
     }
 }
    // ===========================================================
    // Methods for/from SuperClass/Interfaces
    // ===========================================================

    // ===========================================================
    // Methods
    // ===========================================================

    public override void OnEnable() {
        base.OnEnable();
    
        script = target as SequenceRenderer3D;

        renderingMethod = serializedObject.FindProperty("renderingMethod");
        
        gridTexture = serializedObject.FindProperty("gridTexture");
        gridAtlasTextureGUID = serializedObject.FindProperty("gridAtlasTextureGUID");
        gridWidth = serializedObject.FindProperty("gridWidth");
        gridHeight = serializedObject.FindProperty("gridHeight");
        gridFrameCountManual = serializedObject.FindProperty("gridFrameCountManual");
        gridFrameCount = serializedObject.FindProperty("gridFrameCount");
        gridTint = serializedObject.FindProperty("gridTint");
        
        sequenceTextures = serializedObject.FindProperty("sequenceTextures");
        sequenceAtlasTexturesGUID = serializedObject.FindProperty("sequenceAtlasTexturesGUID");
    }