ConfirmInitialization() public static method

public static ConfirmInitialization ( ) : void
return void
    void OnEnable()
    {
        SpineEditorUtilities.ConfirmInitialization();

        try {
            atlasAssets   = serializedObject.FindProperty("atlasAssets");
            skeletonJSON  = serializedObject.FindProperty("skeletonJSON");
            scale         = serializedObject.FindProperty("scale");
            fromAnimation = serializedObject.FindProperty("fromAnimation");
            toAnimation   = serializedObject.FindProperty("toAnimation");
            duration      = serializedObject.FindProperty("duration");
            defaultMix    = serializedObject.FindProperty("defaultMix");
            controller    = serializedObject.FindProperty("controller");
#if SPINE_TK2D
            spriteCollection = serializedObject.FindProperty("spriteCollection");
#endif

            m_skeletonDataAsset     = (SkeletonDataAsset)target;
            m_skeletonDataAssetGUID = AssetDatabase.AssetPathToGUID(AssetDatabase.GetAssetPath(m_skeletonDataAsset));

            EditorApplication.update += Update;
        } catch {
            // TODO: WARNING: empty catch block supresses errors.
        }

        m_skeletonData = m_skeletonDataAsset.GetSkeletonData(true);

        showUnity = EditorPrefs.GetBool("SkeletonDataAssetInspector_showUnity", true);

        RepopulateWarnings();
    }
    void OnEnable()
    {
        SpineEditorUtilities.ConfirmInitialization();

        try {
            atlasAssets   = serializedObject.FindProperty("atlasAssets");
            skeletonJSON  = serializedObject.FindProperty("skeletonJSON");
            scale         = serializedObject.FindProperty("scale");
            fromAnimation = serializedObject.FindProperty("fromAnimation");
            toAnimation   = serializedObject.FindProperty("toAnimation");
            duration      = serializedObject.FindProperty("duration");
            defaultMix    = serializedObject.FindProperty("defaultMix");
            controller    = serializedObject.FindProperty("controller");

            m_skeletonDataAsset     = (SkeletonDataAsset)target;
            m_skeletonDataAssetGUID = AssetDatabase.AssetPathToGUID(AssetDatabase.GetAssetPath(m_skeletonDataAsset));

            EditorApplication.update += Update;
        } catch {
        }

        m_skeletonData = m_skeletonDataAsset.GetSkeletonData(true);

        showBaking = EditorPrefs.GetBool("SkeletonDataAssetInspector_showBaking", true);

        RepopulateWarnings();
    }
 void OnEnable()
 {
     SpineEditorUtilities.ConfirmInitialization();
     atlasFile  = serializedObject.FindProperty("atlasFile");
     materials  = serializedObject.FindProperty("materials");
     atlasAsset = (AtlasAsset)target;
     UpdateBakedList();
 }
 protected virtual void OnEnable()
 {
     SpineEditorUtilities.ConfirmInitialization();
     skeletonDataAsset  = serializedObject.FindProperty("skeletonDataAsset");
     initialSkinName    = serializedObject.FindProperty("initialSkinName");
     normals            = serializedObject.FindProperty("calculateNormals");
     tangents           = serializedObject.FindProperty("calculateTangents");
     meshes             = serializedObject.FindProperty("renderMeshes");
     immutableTriangles = serializedObject.FindProperty("immutableTriangles");
     submeshSeparators  = serializedObject.FindProperty("submeshSeparators");
 }
    protected virtual void OnEnable()
    {
        SpineEditorUtilities.ConfirmInitialization();
        skeletonDataAsset  = serializedObject.FindProperty("skeletonDataAsset");
        initialSkinName    = serializedObject.FindProperty("initialSkinName");
        normals            = serializedObject.FindProperty("calculateNormals");
        tangents           = serializedObject.FindProperty("calculateTangents");
        meshes             = serializedObject.FindProperty("renderMeshes");
        immutableTriangles = serializedObject.FindProperty("immutableTriangles");
        submeshSeparators  = serializedObject.FindProperty("submeshSeparators");
        front = serializedObject.FindProperty("frontFacing");

        if (EditorGUILayoutSortingLayerField == null)
        {
            EditorGUILayoutSortingLayerField = typeof(EditorGUILayout).GetMethod("SortingLayerField", BindingFlags.Static | BindingFlags.NonPublic, null, new Type[] { typeof(GUIContent), typeof(SerializedProperty), typeof(GUIStyle) }, null);
        }

        rendererSerializedObject = new SerializedObject(((SkeletonRenderer)target).GetComponent <Renderer>());
        sortingLayerIDProperty   = rendererSerializedObject.FindProperty("m_SortingLayerID");
    }
 void OnEnable()
 {
     SpineEditorUtilities.ConfirmInitialization();
     atlasFile = serializedObject.FindProperty("atlasFile");
     materials = serializedObject.FindProperty("materials");
 }