Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

Search the Community

Showing results for tags 'splatmap'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GENERAL
    • Introduce yourself
    • Discussions
    • Showcase
    • Need help?
    • Seeking team members?
    • Offtopic
  • RESOURCES
    • Example Projects
    • Scripts
    • Shaders
    • Unity Tutorials
    • FPS Kit Tutorials
    • 3D models
    • Animated 3D Models
    • Graphic design
    • Textures
    • Sounds
    • Other
  • SELL | REQUEST
    • Sell
    • Request
  • Mars' Modular Multiplayer Photon FPS Kit's Topics
  • Mars' Modular Multiplayer Photon FPS Kit's Reviews
  • Mars' Modular Multiplayer Photon FPS Kit's Updates
  • Mars' Modular Multiplayer Photon FPS Kit's Tutorials
  • Busy People's Introductions
  • Photon's Tutorials
  • Photon's Photon General
  • Photon's Showcase

Categories

  • Free Projects
  • Free Assets
  • Game Demos
  • Photon's Files

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


YouTube URL


Facebook URL


Twitter URL


IndieGoGo URL


Kickstarter URL


IndieDB URL


GreenLight URL


Location:


Interests

Found 1 result

  1. I have been trying to apply a texture to a terrain from C for over a week now. New to Unity3D however applying a texture to a primitive took me 30 seconds to figure out what am I not doing correctly here? using UnityEngine; using System.Collections; using Utility; public class test : MonoBehaviour { //use this for initialization void Start () { //create a new terrain data TerrainData _terrainData = new TerrainData(); //set terrain width, height, length _terrainData.size = new Vector3(20, 1, 20); SplatPrototype[] terrainTexture = new SplatPrototype[1]; terrainTexture[0] = new SplatPrototype(); terrainTexture[0].texture = (Texture2D)Resources.Load("Standard Assets/Terrain Assets/Terrain Textures/Grass (Hill)"); _terrainData.splatPrototypes = terrainTexture; //how do I now apply the loaded texture to my terrain? //how do I test if my texture has loaded correctly? //Create a terrain with the set terrain data GameObject _terrain = Terrain.CreateTerrainGameObject(_terrainData); } // Update is called once per frame void Update () { } }
×
×
  • Create New...