Announcement

Collapse
No announcement yet.

Numbers by Offset?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • started a topic Numbers by Offset?

    Numbers by Offset?

    Hi,

    Let's say I got 20 doors, and every door should have a number (texture).

    I was thinking about a material only solution with "flipbook" and "world space offset", but I don't want to have 20 material instances, just to set the offset value every time with aparameter. And I don't think the offset position of the mesh and the skipping to the next number will work properly?



    I guess a BP with a "construction script" will work best? So, I can set up every number with a parameter within a mesh actor individually.

    What would be the best way to achieve this (and how)?

    Thx


  • replied
    Issue solved...thx.

    ---

    Did find a solution for the material here:

    https://answers.unrealengine.com/que...blueprint.html

    Last edited by TCBmbw; 06-01-2019, 09:07 PM.

    Leave a comment:


  • replied
    DanDizard

    Thank you.
    Currently I'm alredy stuck in the material creation regarding the flip book material. I want to use the flipbook without animations, just toggling/skipping from one number to the other.
    I thought I could stop the animation and kinda offset it with a parameter, but it did not work.

    I know I could do it without the flipbook function, with a simple offset divide and exposed parameters - it's o.k for a lower amount of numbers, but not very handy with larger amounts of numbers.

    Leave a comment:


  • replied
    Hey, TCBmbw.

    Do you know about our Lord and Saviour, the Dynamic Material Instance?
    You can set it up in Construction Script or in the Event Graph if you want to change stuff at runtime.

    (Here's a BlueprintUE version of the screenshot.)

    Click image for larger version

Name:	UE4Editor_oNlpdTbBtU.png
Views:	1
Size:	252.3 KB
ID:	1624859
    I hope this is what you were looking for.

    Cheers,
    Dan

    Leave a comment:


  • replied
    Originally posted by ClockworkOcean View Post
    TCBmbw You could do it with a decal that's applied to the door material. The decal material contains all the numbers in a grid and you can access them using a parameter in the material instance. Any good?
    I would rather avoid useing 20+ material instances (and decals).

    I'm looking more for something which can be done directly in a mesh actor with a dynamic material in a construction script.

    Leave a comment:


  • replied
    TCBmbw You could do it with a decal that's applied to the door material. The decal material contains all the numbers in a grid and you can access them using a parameter in the material instance. Any good?

    Leave a comment:

Working...
X