Exemple #1
0
    // ========================================================================== //

    /* public - [Do~Somthing] Function          */

    public AssetBundleBrowserWrapper()
    {
        _pBrowser     = AssetBundleBrowserMain.GetWindow <AssetBundleBrowserMain>();
        _pBrowserType = _pBrowser.GetType();

        _pField_BuildTab      = _pBrowserType.GetField("m_BuildTab", BindingFlags.NonPublic | BindingFlags.Instance);
        _pAssetBundleBuildTab = _pField_BuildTab.FieldType;

        _pMethod_Build = _pAssetBundleBuildTab.GetMethod("ExecuteBuild", BindingFlags.NonPublic | BindingFlags.Instance);
    }
Exemple #2
0
        // ========================================================================== //

        /* public - [Do~Something] Function             */

        public AssetBundleBrowserWrapper()
        {
#if ASSET_BUNDLE_BROWSER
            _bundleBrowser = AssetBundleBrowserMain.GetWindow <AssetBundleBrowserMain>();
            browserType    = _bundleBrowser.GetType();

            _buildtabField      = browserType.GetField("m_BuildTab", BindingFlags.NonPublic | BindingFlags.Instance);
            _pInstance_BuildTab = _buildtabField.GetValue(_pBrowser);

            _buildtabField_UserData = _buildtabField.FieldType.GetField("m_UserData", BindingFlags.NonPublic | BindingFlags.Instance);
            _pInstance_UserData     = _buildtabField_UserData.GetValue(_pInstance_BuildTab);

            _buildtabField_UserData_BuildTarget = _buildtabField_UserData.FieldType.GetField("m_BuildTarget", BindingFlags.NonPublic | BindingFlags.Instance);

            _pMethod_Build = _buildtabField.FieldType.GetMethod("ExecuteBuild", BindingFlags.NonPublic | BindingFlags.Instance);
#endif
        }