holoride
Search Results for

    Show / Hide Table of Contents

    Pick Prefab by Map

    Overview

    The Pick Prefab by Map node selects the prefab from the list with the highest map value.

    The Pick Prefab by Map node with one element

    Detailed Explanation

    The idea of this node is to provide Prefabs to other nodes. Which Prefab of the list will be returned is determined by the Map with the highest value at the location where the node is queried.

    This node could be used in cases where different regions should spawn different objects. For objects with the same map value an option is selected at random.

    Parameters

    Controls

    Name Type Description
    Provider Data List of elements with Prefab and Map The list of Prefabs and their associated Maps from which an element will be selected.

    Use Cases

    Basic terrain texturing

    Example of spawning objects from a list of prefabs with maps

    This example shows a simple Spawner setup that spawns different object variants on a grid. Using different object variations can help to break up the repetition and thus improve the feel of the game. In this example we use the output of the OSM Geometry Rasterizer to define a special region and depending on whether we are in the area we select the special object.

    In This Article

    Back to top
    ©   holoride
    Privacy   Imprint