Skip to content

mmelkumyan/UnityPlatformGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ANIM T380 - Final

Unity Platform Generator

Spline example

Description

  • This tool lets you build procedural platforms in Unity using a spline tool.
    • Spline example

Dependencies

  • Dreamteck Splines: A Unity package that allows you to draw and generate meshes from splines.

Creating a Platform

  • To create a platform, click GameObject -> 3D Object -> Spline Platform
    • Create spline platform
    • Draw the spline by clicking Edit under the Spline Computer component and placing nodes in the scene.

Arguments

Unity Interface:

  • Materials
    • Surface Material - Material for platform's top mesh
    • Wall Material - Material for platform's side mesh
  • Surface
    • Shape
      • Depth - Depth of the top mesh
      • Expand - Buffer size of the top mesh.
    • UV Coordinates
      • UV Scale - UV scale of the top surface of the top mesh
      • Side UV Scale - UV scale of the side surface of the top mesh
  • Wall
    • Shape
      • Depth - Depth of the wall mesh
      • Curve - Curve of the wall mesh. Straight down by default.
      • Curve Scale - Scale of the curve's influence. 0 is none, 10 is one-to-one with the curve graph.
      • Resolution - The number of rows of quads in the side mesh. A higher resolution is needed to for more detailed cures.
    • UV Coordinates
      • UV Scale - UV scale of the wall mesh
  • Bake Meshes
    • Bakes the surface and wall meshes. This locks them in place and stops the spline from controlling them. Can be undone by clicking Revert Bake.

Examples

  • Drawing spline curve:
    • Spline example 1
  • Assigning materials:
    • Spline example 2
  • Modifying dimensions:
    • Spline example 3
  • Assigning a curve to the walls:
    • Spline example 4

Know Issues and Limitations

  • Topology of non-flat surfaces can be erradic, so flat surfaces are recommended.
  • Walls may clip through the surface when spline is not flat.

Planned Features

  • Auto scale UVs on walls
  • Add foliage cards to edge of platform surface
  • Add option to convert from pro-builder meshes to spline platforms

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors