This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
// Class for drawing meshes using the Graphics.DrawMeshInstanced method. | |
// At initialization, generates a list of transform matrices, | |
// each representing an object and its position. | |
// During update steps, it sends draw requests for the objects using | |
// Graphics.DrawMeshInstanced and providing the meshes' transform matrix array. | |
public class InstanceRenderer : MonoBehaviour |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For more info on how to use ref keywords for modifying structs | |
// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/ref | |
using System; | |
class MainClass { | |
public class MyClass { | |
public float number = 0; | |
} |