ex-makina / marklight

MarkLight is a presentation framework for Unity that allows you to create scene elements in a language similar to HTML.
MIT License
75 stars 35 forks source link

Easier IntelliSense integration #8

Open rafalkozik opened 7 years ago

rafalkozik commented 7 years ago

It's possible to avoid global Visual Studio configuration changes suggested in the documentation.

To add IntelliSense support, simply use additional attributes in the XML root:

<MainMenu xmlns="MarkLight" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="MarkLight ..\..\MarkLight\Views\Schemas\MarkLight.xsd" >
    <!-- view definition -->
</MainMenu>

Where ..\..\MarkLight\Views\Schemas\MarkLight.xsd is relative location to xsd file. This should be added automatically when adding a new View with Unity Editor.