UDN
Search public documentation:

UsingVAXWithUnrealScript
日本語訳
中国翻译
한국어

Interested in the Unreal Engine?
Visit the Unreal Technology site.

Looking for jobs and company info?
Check out the Epic games site.

Questions about support via UDN?
Contact the UDN Staff

UE3 Home > Getting Started: Unreal Engine 3 > Getting Started: Programming > Using Visual Assist X with UnrealScript

Using Visual Assist X With UnrealScript


Overview


Visual Assist X, provides refactoring, enhanced intellisense, and other workflow enhancements for programmers using Visual Studio. Visual Assist X can now be modified to enable unofficial and unsupported UnrealScript enhancements in Visual Studio.

Version and Installation


In order to take advantage of the new UnrealScript support, you need the latest version of Visual Assist X:

Click this Build 1862.1 link to download the installer. This is a unified installer for all IDEs. Run the installer once it is downloaded.

To Register File Handlers

When installing VA for pre-vs2010 IDEs, VA automatically registers a file handler for .uc files. This does not happen for VS2010 and will need to happen manually.

  1. In the Tools menu, select Options to view the Visual Studio Options dialog.
    tools_menu.jpg
  2. Expand the Text Editor section and then select File Extension. Here you can add new handlers for file extensions.
    file_extension.jpg
  3. Add uc in the Extension field and select Microsoft Visual C++ as the Editor. Then press the add_button.jpg button to add the handler for the uc extension.
    uc_extension.jpg
  4. Repeat the last step for the uci file extension as well.
  5. Press the ok_button.jpg to save the changes.

Enabling UnrealScript Support


UnrealScript support is disabled by default. Currently, it must be enabled manually by modifying the registry.

To enable UC support

  1. Copy the text below and save it in a text file with the .reg file extension:
    • Visual Studio 2010
        Windows Registry Editor Version 5.00
        
        [HKEY_CURRENT_USER\Software\Whole Tomato\Visual Assist X\VANet10]
        "EnableUC"=hex:01
           
    • Visual Studio 2008
        Windows Registry Editor Version 5.00
        
        [HKEY_CURRENT_USER\Software\Whole Tomato\Visual Assist X\VANet9]
        "EnableUC"=hex:01
           
  2. Run the new registry file by double-clicking it or through the right-click context menu by choosing Merge.
  3. UAC may ask if you want to run the file. Click the yes_button.jpg button if prompted.
  4. A warning is displayed informing you that you are about to modify the registry. Click the yes_button.jpg button to proceed.
    reg_warning.jpg
  5. If successful, the registry is updated and you will see the following message:
    reg_success.jpg

Setting Up UnrealScript Snippets


VA Snippets for UnrealScript are now independent of C/C++ snippets. If you have UnrealScript snippets mixed in with your C/C++ snippets, they need to be placed into their own file specificly for the UnrealScript snippets.

To Move UnrealScript Snipepts

  1. Copy the C:\Users\\AppData\Roaming\VisualAssist\Autotext\cpp.tpl to C:\Users\\AppData\Roaming\VisualAssist\Autotext\uc.tpl.
  2. Once the uc.tpl file has been created, UnrealScript will appear as a node in the VA Snippet editor.
  3. Remove the UnrealScript snippets from the C++ node and the C++ snippets from the UnrealScript node.