I want to link css file with html in Unity with the help of Power UI. I already converted css file into bytes format but it not still worked. Here is the code

    <link href="Resources/bootstrapUnity.css.bytes"/>
    <h1>Hello Game</h1>
    <button type="button" class="btn btn-success btn-lg">Play</button>
    <button class="btn btn-info">Test</button>

The default href with PowerUI is resources:// so you don't need 'Resources/' just "/bootstrapUnity.css". (If you have the .bytes extension added this means you don't need it mentioned in the HTML file, as Unity will 'name' it without .bytes so that .css/.js links work normally..)..

Assuming bootstrapUnity.css.bytes is in the root of a 'resources' folder, try: ?

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.