Unity version: [version]
Description of the sample. Please provide enough info and links to Unity documentation for the sample to actually be useful. Feel free to add sections, screenshots, etc.
Please, do not publish code-only samples. Those quickly become dead weight because no one is able to make sense of them down the road.
Everyone likes pictures, so don't be shy to add some like this: .
- Create the Unity project or package. For multiple versions of a sample, store them in separate subfolders (e.g.
unity-project-2019andunity-project-2020) and copy/move the.gitignorethere. - Include only the required Assets and try to reuse those from other samples to keep the repository's size under control. For example, don't keep all Assets from the HDRP or URP Unity templates unless they are relevant for the sample.
- Don't keep extra unneeded packages in the project (e.g. profiler tools, unless relevant).
- Write a title, description and Unity version(s) used above.
- Add an entry to the
README.mdat the root of this repository. - Delete this Instructions section and everything below.
- Delete the
Utilsfolder. - Submit a PR.
Please follow Unity's coding standard available on Ono in unity-extra/unity-meta/ReferenceSource/CSharp/Assets/CSharpReference.cs.
The Utils folder contains common utilities and resources for use by samples.
ScriptableObjectInstantiator.cs: Adds buttons to the Inspector to instantiate Assets from a ScriptableObject.
SimpleCameraController.cs: WASD Camera controller from the URP template that replicates the Scene View's logic when right clicking.
Collection of common textures for samples.