Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefab modifier for line #1323

Open
lawlizxc opened this issue Mar 29, 2019 · 5 comments
Open

Prefab modifier for line #1323

lawlizxc opened this issue Mar 29, 2019 · 5 comments
Assignees
Labels

Comments

@lawlizxc
Copy link

Note: If this is a bug or support ticket, please provide the following information:

  • Unity version:
    • Scripting Runtime Version:
    • Scripting Backend:
    • Api Compatibility Level:
  • Mapbox SDK version:
  • The platform you're building to:
  • A description of what you're trying to do:
  • Steps to recreate the bug if appropriate:
  • Links to your logs are also helpful:
@lawlizxc lawlizxc changed the title Hi there... Prefab modifier for line Mar 29, 2019
@lawlizxc
Copy link
Author

Hi there...
Newbie here..
I am working with WorldScaleAR and I wish to change the prefab of my line features. The texture of the default line looks boxy and I want to attach some script to my prefab as well.
Is there any way that i can do that? NewPrefabModifier seems to work only for point features.

@jordy-isaac
Copy link
Contributor

Would a LineMeshModifier do the trick for your use case? If not please let us know a bit more about what you're building.

@lawlizxc
Copy link
Author

lawlizxc commented Apr 4, 2019

Hi Jordy,

Thanks for replaying. I am building an app to visualize underground pipeline. How can I change the Y position of the pipe because it seems floating in the air. Also, I wish to change the shape of the pipe as well (cylinder, some looks like pipe).
image

@brnkhy
Copy link
Contributor

brnkhy commented May 1, 2019

Hey @lawlizxc ,
First of all, about height, you should be able to push them down using 'Absolute Height' property in 'Extrusion Type' settings. I'm not sure if a fixed negative value would work though?

Second, you can change the space of the 'line' but it gets a little tricky here. To be able to do that, you'll have to use Custom primitive type and 'Loft Modifier'. You can check 'Traffic' layer in 'AstronautGame' demo scene to see how it's setup and works. Setting negative fixed height might be tricky here though and for that I can only suggest changing 'Loft Modifier' code to push Y axis of points down as I dont think it supportds such customization at the moment.

@brnkhy brnkhy self-assigned this May 1, 2019
@lawlizxc
Copy link
Author

lawlizxc commented May 4, 2019

Hi @brnkhy,
Thanks for replying. I've tried absolute height property, it only changes the height of the wall (side)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants