Jump to content
  • Advertisement

Unreal Why setting stroke-linecap:butt cannot take effect in Coherent UI for UE4

Recommended Posts

I'm using a plugin called Coherent UI for UE4 to present html pages in game.There's a problem that same html page presented in web browser and in the game is different.In that page there's a svg line.

<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
  <line x1="0" y1="0" x2="200" y2="200"

When I set the stroke-width at a larger value, 50,100... it's length also became larger.




The first one, stroke-width=2.

The second one, stroke-width=50.

The third one, stroke-width=50 but in Chrome and Firefox.

I need the edge align to the center of the circle.And I found that if I set the stroke-linecap at "square",the line in web browser is same as the second.So I tried to set stroke-linecap at "butt", then the line in browser became correct.But it doesn't take effect in the Coherent UI.Is it a bug in the plugin?How can I fix it?


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!