Jump to content
  • Advertisement
Royma

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 1.11.2.1 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"
  style="stroke:rgb(255,0,0);stroke-width:2"/>
</svg>

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

image.png.51531f5325efec8e5eafa799d45b8388.png

image.png.1f7045a0aa4800604e9b4c2121b2f679.png

image.png.feb44a06abe647023061a6dd8e8c0bfa.png 

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?

Thanks.

Share this post


Link to post
Share on other sites
Advertisement

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!