begin
8
unity_prj/letters/Assets/VegetationSpawner.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ce7824bfb71654047ad129411898d7a6
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
134
unity_prj/letters/Assets/VegetationSpawner/CHANGELOG.md
Normal file
|
|
@ -0,0 +1,134 @@
|
|||
1.1.0
|
||||
Minimum supported version is now Unity 2021.2.16f1
|
||||
|
||||
Added:
|
||||
- Density slider for grass items
|
||||
- Utilities window:
|
||||
* Convert trees to GameObjects
|
||||
* Extract tree capsule colliders (useful for navmesh baking)
|
||||
- Terrain class C# extensions:
|
||||
* RemoveTreesAtPosition()
|
||||
* ContainsTreePrefab()
|
||||
* RemoveTree()
|
||||
* GetTreeInstances()
|
||||
|
||||
Fixed:
|
||||
- Null-ref error regarding the selection in the inspector, when opening a Vegetation Spawner with fewer vegetation items than the last.
|
||||
- Grass not spawning when the terrain's Detail Scatter Mode was set to "Coverage Mode" (Unity 2022.2+).
|
||||
|
||||
1.0.9
|
||||
|
||||
Added:
|
||||
- Cancelable progress bar when spawning a tree/grass item, with improved progress indication.
|
||||
- Option under the settings tab to only spawn on terrains visible in the scene view, for quick prototyping.
|
||||
- Edge hole padding parameter for grass in Unity 2021.2+
|
||||
- Parameters to control grass ground alignment and position jitter in Unity 2022.2+.
|
||||
|
||||
Changed:
|
||||
- Newly added tree species now automatically have a randomized seed value.
|
||||
- Water level visualization now expands to the entire visible camera range.
|
||||
|
||||
Fixed:
|
||||
- Tree items appearing to float in areas with steep inclinations on high-altitude terrains.
|
||||
- Fixed height range being set to 0-1 for grass when using the "Fetch and convert grass items" option.
|
||||
|
||||
1.0.8
|
||||
|
||||
Added:
|
||||
- Option to toggle GPU Instancing for grass prefabs in Unity 2021.2+
|
||||
- If no grass items are set up, the option is present to grab them from a specific terrain object (first set up scenario).
|
||||
|
||||
Changed:
|
||||
- A warning is now displayed if a grass prefab uses a LOD Group, which the terrain system does not support.
|
||||
|
||||
1.0.7
|
||||
|
||||
Fixed:
|
||||
- Spawning of trees breaking if a terrain has a rotated transform
|
||||
- Collision cache baking also taking triggers into account.
|
||||
- Height range minimum value not accepting values lower than 0. It is now based on the lowest point of the terrain(s).
|
||||
- Minor UI corrections for the Personal/Light skin.
|
||||
- Collision cells not being properly centered
|
||||
|
||||
Changed:
|
||||
- New grass items now use a white color by default.
|
||||
|
||||
1.0.6
|
||||
|
||||
Changed:
|
||||
- Improved spawning speed of trees by only recalculating spawn points when needed.
|
||||
- Adding a new tree and closing the prefab picker will now simply create an empty tree (in case you want to drag in a specific prefab)
|
||||
|
||||
Fixed:
|
||||
- Not being able to drag terrains into the terrain list
|
||||
- Seed for tree spawn chances had them spawn in rows
|
||||
- Undo/redo on tree parameters having no effect if "Auto respawn trees" was disabled in the settings
|
||||
|
||||
1.0.5
|
||||
|
||||
Added:
|
||||
- Vegetation items now have an "enabled" checkbox. If disabled, it will not be spawned.
|
||||
- Vegetation items now have a name label, used to more easily identify them in the inspector. (these will be automatically filled when updating)
|
||||
- Grass patch size can now be configured under the settings tab. This controls how many batches the terrain internally creates.
|
||||
|
||||
Changed:
|
||||
- A warning is now displayed if a tree prefab does not have a LOD Group component. In this case the terrain can't apply random rotation/scale.
|
||||
- API now supports (re)spawning trees/grass on a specific terrain
|
||||
- Improved progress bar for grass respawning
|
||||
|
||||
Fixed:
|
||||
- Tree not respawning when modifying the minimum strength for a terrain layer mask
|
||||
|
||||
1.0.4
|
||||
|
||||
Added:
|
||||
- Grass items now have a toggle for camera billboarding if a texture is used
|
||||
- Noise spread value for grass can now also be configured
|
||||
- Adding a tree now automatically opens a project prefab picker
|
||||
- Settings tab now has the option to only respawn all grass or trees
|
||||
- Added option to set the detail map resolution, since this control the minimum possible distance between grass items
|
||||
|
||||
Changed:
|
||||
- UI improvements for usability
|
||||
- Renamed namespace to "sc.terrain.vegetationspawner" for consistency between other terrain tools
|
||||
- Secondary grass color value is now kept, even if linked to main color
|
||||
- Removed some terrain settings, the component should only concern itself with vegetation related settings (added more of those!)
|
||||
- (C#) SpawnerBase.GrassType.Billboard was renamed to SpawnerBase.GrassType.Texture. Since a grass item isn't always a billboard
|
||||
|
||||
Fixed:
|
||||
- Sink amount for trees not having any effect
|
||||
- Inspector window being forced to a fixed width under certain circumstances in the grass tab
|
||||
- Layer mask selection not selecting the correct item in some cases
|
||||
|
||||
1.0.3
|
||||
|
||||
Added:
|
||||
- Callback delegate for when a grass/tree item respawns (see documentation for example).
|
||||
- Terrain extension function for getting a tree instances of a specific prefab.
|
||||
- Water level is now visualized in the scene view when the Settings tab is active.
|
||||
- Option to disable automatic respawning of trees when a spawn rule is modified.
|
||||
|
||||
Changed:
|
||||
- Renamed "Opacity threshold" for terrain layer masks to "Minimum strength", for clarity.
|
||||
- Height range maximum value is now based on the height of the largest terrain (instead of being fixed at 2000).
|
||||
- Collision detection now works for non-square terrains
|
||||
|
||||
Fixed:
|
||||
- UI error when switching to a scene with fewer grass items than the last
|
||||
|
||||
1.0.2
|
||||
|
||||
Fixed:
|
||||
- Trees appearing black when using Tree Creator shaders.
|
||||
|
||||
1.0.1
|
||||
|
||||
Added:
|
||||
- Grass items can now be duplicated.
|
||||
- Exposed seed value in settings tab (global, added to each item's own seed).
|
||||
|
||||
Fixed:
|
||||
- Last selected tree item respawning when changing grass spawn rules.
|
||||
|
||||
1.0.0
|
||||
Initial release
|
||||
14
unity_prj/letters/Assets/VegetationSpawner/CHANGELOG.md.meta
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 35eedf231ecf3bf4da9d31eeb00b421c
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/CHANGELOG.md
|
||||
uploadId: 712351
|
||||
BIN
unity_prj/letters/Assets/VegetationSpawner/Documentation.pdf
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 89a68f2f9d5745d4e959725d98603587
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/Documentation.pdf
|
||||
uploadId: 712351
|
||||
8
unity_prj/letters/Assets/VegetationSpawner/Editor.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7a5b0b10294f51f43832d29a95277157
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 45e33584b98bc924bbb49e770f690f31
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/Editor/VegetationSpawnerEditor.cs
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c29a9c13296bcab41a4438ee4b5d2c9a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/Editor/VegetationSpawnerInspector.cs
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,212 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using Object = UnityEngine.Object;
|
||||
|
||||
namespace sc.terrain.vegetationspawner
|
||||
{
|
||||
public class VegetationUtilitiesWindow : EditorWindow
|
||||
{
|
||||
//[MenuItem("Tools/Vegetation Utilities")]
|
||||
public static void ShowWindow()
|
||||
{
|
||||
VegetationUtilitiesWindow editorWindow = GetWindow<VegetationUtilitiesWindow>(true, " Vegetation Utilities", true);
|
||||
|
||||
//Open somewhat in the center of the screen
|
||||
#if !UNITY_EDITOR_OSX //DPI Scaling prevents this from properly working
|
||||
editorWindow.position = new Rect((Screen.currentResolution.width / 2f) - (550 * 0.5f), (Screen.currentResolution.height / 2f) - (450 * 0.8f), 550, 450);
|
||||
#endif
|
||||
|
||||
editorWindow.Show();
|
||||
}
|
||||
|
||||
private Terrain[] terrains = new Terrain[0];
|
||||
private Vector2 terrainScrollPos;
|
||||
public Object targetPrefab;
|
||||
|
||||
private bool deleteTrees = true;
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
RefreshTerrains();
|
||||
}
|
||||
|
||||
private void OnFocus()
|
||||
{
|
||||
RefreshTerrains();
|
||||
}
|
||||
|
||||
private void RefreshTerrains()
|
||||
{
|
||||
if (VegetationSpawner.Current) terrains = VegetationSpawner.Current.terrains.ToArray();
|
||||
else terrains = Terrain.activeTerrains;
|
||||
}
|
||||
|
||||
private void OnGUI()
|
||||
{
|
||||
using (new EditorGUILayout.HorizontalScope())
|
||||
{
|
||||
EditorGUILayout.LabelField($"Target terrains ({terrains.Length})", EditorStyles.boldLabel);
|
||||
if (GUILayout.Button("Refresh", GUILayout.MaxWidth(75f)))
|
||||
{
|
||||
RefreshTerrains();
|
||||
}
|
||||
}
|
||||
|
||||
terrainScrollPos = EditorGUILayout.BeginScrollView(terrainScrollPos, EditorStyles.textArea, GUILayout.Height(100f));
|
||||
{
|
||||
foreach (var t in terrains)
|
||||
{
|
||||
DrawTerrainInto(t);
|
||||
}
|
||||
|
||||
}
|
||||
EditorGUILayout.EndScrollView();
|
||||
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.BeginVertical(EditorStyles.helpBox);
|
||||
{
|
||||
EditorGUILayout.BeginHorizontal();
|
||||
{
|
||||
EditorGUILayout.LabelField("Convert trees to GameObjects", EditorStyles.whiteLargeLabel);
|
||||
|
||||
if (GUILayout.Button("Execute"))
|
||||
{
|
||||
var progress = true;
|
||||
int counter = 0;
|
||||
foreach (Terrain terrain in terrains)
|
||||
{
|
||||
if (EditorUtility.DisplayCancelableProgressBar("Vegetation Utilities", $"Converting vegetation for {terrain.name} ({counter}/{terrains.Length})", (float)counter / (float)terrains.Length))
|
||||
{
|
||||
progress = false;
|
||||
}
|
||||
|
||||
if (progress)
|
||||
{
|
||||
terrain.InstantiateTreePrefabs(targetPrefab);
|
||||
if (deleteTrees) terrain.terrainData.SetTreeInstances(new TreeInstance[0], false);
|
||||
|
||||
counter++;
|
||||
}
|
||||
|
||||
EditorUtility.ClearProgressBar();
|
||||
|
||||
}
|
||||
}
|
||||
if (GUILayout.Button(new GUIContent("Delete Objects", "Destroys all child objects of a terrain." +
|
||||
"\n\nWarning: this may include other objects not created by this tool!" +
|
||||
"\n\nYou can undo the deletion through CTRL+Z just in case!")))
|
||||
{
|
||||
foreach (Terrain terrain in terrains)
|
||||
{
|
||||
terrain.drawTreesAndFoliage = true;
|
||||
|
||||
}
|
||||
|
||||
DeleteChildObjects();
|
||||
}
|
||||
}
|
||||
EditorGUILayout.EndHorizontal();
|
||||
|
||||
EditorGUILayout.BeginHorizontal();
|
||||
{
|
||||
GUILayout.FlexibleSpace();
|
||||
deleteTrees = EditorGUILayout.ToggleLeft("Delete terrain tree data", deleteTrees);
|
||||
}
|
||||
EditorGUILayout.EndHorizontal();
|
||||
|
||||
|
||||
EditorGUILayout.HelpBox("Instantiates all tree prefabs at the same position as they appear on the terrain, and makes them child objects of a terrain", MessageType.Info);
|
||||
}
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.BeginVertical(EditorStyles.helpBox);
|
||||
{
|
||||
EditorGUILayout.BeginHorizontal();
|
||||
{
|
||||
EditorGUILayout.LabelField("Extract tree capsule colliders", EditorStyles.whiteLargeLabel);
|
||||
|
||||
if (GUILayout.Button("Execute"))
|
||||
{
|
||||
var progress = true;
|
||||
int counter = 0;
|
||||
|
||||
foreach (Terrain terrain in terrains)
|
||||
{
|
||||
if (EditorUtility.DisplayCancelableProgressBar("Vegetation Utilities", $"Extracting colliders from {terrain.name} ({counter}/{terrains.Length})", (float)counter / (float)terrains.Length))
|
||||
{
|
||||
progress = false;
|
||||
}
|
||||
|
||||
if (progress)
|
||||
{
|
||||
terrain.InstantiateTreeColliders(targetPrefab);
|
||||
|
||||
counter++;
|
||||
}
|
||||
|
||||
EditorUtility.ClearProgressBar();
|
||||
}
|
||||
}
|
||||
if (GUILayout.Button(new GUIContent("Delete Colliders", "Destroys all child objects of a terrain that use a Capsule Collider")))
|
||||
{
|
||||
foreach (Terrain terrain in terrains)
|
||||
{
|
||||
DeleteColliders(terrain);
|
||||
}
|
||||
}
|
||||
}
|
||||
EditorGUILayout.EndHorizontal();
|
||||
}
|
||||
EditorGUILayout.HelpBox("Instantiates a GameObject with an identical Capsule Collider, copied from the related tree prefab. Use this to include trees in navmesh data.", MessageType.Info);
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
}
|
||||
|
||||
private void DeleteChildObjects()
|
||||
{
|
||||
List<Object> children = new List<Object>();
|
||||
|
||||
foreach (Terrain terrain in terrains)
|
||||
{
|
||||
foreach (Transform child in terrain.transform)
|
||||
{
|
||||
//Skip the first, since its the terrain itself
|
||||
if(child == terrain.transform) continue;
|
||||
|
||||
children.Add(child.gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
Undo.RecordObjects(children.ToArray(), "Deleted terrain child objects");
|
||||
|
||||
foreach (GameObject child in children)
|
||||
{
|
||||
//Remove all previously created objects first
|
||||
DestroyImmediate(child);
|
||||
}
|
||||
}
|
||||
|
||||
private void DeleteColliders(Terrain terrain)
|
||||
{
|
||||
CapsuleCollider[] colliders = terrain.GetComponentsInChildren<CapsuleCollider>();
|
||||
|
||||
foreach (CapsuleCollider col in colliders)
|
||||
{
|
||||
DestroyImmediate(col.gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
private void DrawTerrainInto(Terrain t)
|
||||
{
|
||||
if (!t) return;
|
||||
|
||||
string size = t.terrainData.size.ToString();
|
||||
EditorGUILayout.LabelField(new GUIContent(" " + t.name + " " + size, EditorGUIUtility.IconContent("Terrain Icon").image));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: fe63ccc9b17a4e319850412782d48d6f
|
||||
timeCreated: 1678707608
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/Editor/VegetationUtilitiesWindow.cs
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"name": "sc.vegetationspawner.editor",
|
||||
"references": [
|
||||
"sc.vegetationspawner.runtime"
|
||||
],
|
||||
"optionalUnityReferences": [],
|
||||
"includePlatforms": [
|
||||
"Editor"
|
||||
],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": []
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b23b41c8b174825488f383747e3e61a4
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/Editor/sc.vegetationspawner.editor.asmdef
|
||||
uploadId: 712351
|
||||
8
unity_prj/letters/Assets/VegetationSpawner/Runtime.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c18112b84b781e446a4d4d6075be7b4e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
75
unity_prj/letters/Assets/VegetationSpawner/Runtime/Cell.cs
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
// Vegetation Spawner by Staggart Creations http://staggart.xyz
|
||||
// Copyright protected under Unity Asset Store EULA
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace sc.terrain.vegetationspawner
|
||||
{
|
||||
[Serializable]
|
||||
public class Cell
|
||||
{
|
||||
public Bounds bounds;
|
||||
public Cell[,] subCells;
|
||||
|
||||
public void Subdivide(int divisions)
|
||||
{
|
||||
subCells = new Cell[divisions, divisions];
|
||||
|
||||
float cellSize = (bounds.size.x / divisions);
|
||||
|
||||
for (int x = 0; x < divisions; x++)
|
||||
{
|
||||
for (int z = 0; z < divisions; z++)
|
||||
{
|
||||
Vector3 subCellCenterPos = new Vector3(
|
||||
bounds.min.x + (x * (cellSize)) + cellSize * 0.5f,
|
||||
bounds.center.y,
|
||||
bounds.min.z + (z * (cellSize)) + cellSize * 0.5f
|
||||
);
|
||||
Cell subCell = Cell.New(subCellCenterPos, cellSize);
|
||||
|
||||
subCells[x, z] = subCell;
|
||||
}
|
||||
}
|
||||
}
|
||||
public static Cell New(Vector3 wPos, float size)
|
||||
{
|
||||
Cell cell = new Cell();
|
||||
|
||||
cell.bounds = new Bounds(wPos, Vector3.one * size);
|
||||
|
||||
return cell;
|
||||
}
|
||||
|
||||
public bool InsideXZ(Vector3 wPos)
|
||||
{
|
||||
return (wPos.x >= bounds.min.x && wPos.x <= bounds.max.x && wPos.z >= bounds.min.z && wPos.z <= bounds.max.z);
|
||||
}
|
||||
|
||||
public static Vector2Int PositionToCellIndex(Terrain terrain, Vector2 normalizedPos, int cellSize)
|
||||
{
|
||||
int x = Mathf.FloorToInt((terrain.terrainData.size.x / cellSize) * normalizedPos.x);
|
||||
int y = Mathf.FloorToInt((terrain.terrainData.size.z / cellSize) * normalizedPos.y);
|
||||
|
||||
return new Vector2Int(x, y);
|
||||
}
|
||||
|
||||
public Cell GetSubcell(Vector3 worldPos, float cellSize, int subDivisions)
|
||||
{
|
||||
if (subCells == null) return null;
|
||||
|
||||
Vector2 localCellPos = new Vector2(
|
||||
(worldPos.x - bounds.min.x) / cellSize,
|
||||
(worldPos.z - bounds.min.z) / cellSize);
|
||||
|
||||
Vector2Int subCellIndex = new Vector2Int(
|
||||
Mathf.FloorToInt(subDivisions * localCellPos.x),
|
||||
Mathf.FloorToInt(subDivisions * localCellPos.y));
|
||||
|
||||
return subCells[subCellIndex.x, subCellIndex.y];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ce6a604116abfce498c63a530a1313a9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/Runtime/Cell.cs
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,153 @@
|
|||
// Vegetation Spawner by Staggart Creations http://staggart.xyz
|
||||
// Copyright protected under Unity Asset Store EULA
|
||||
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace sc.terrain.vegetationspawner
|
||||
{
|
||||
/// <summary>
|
||||
/// 2D (XZ) poisson disc sampling within bounds
|
||||
/// </summary>
|
||||
public static class PoissonDisc
|
||||
{
|
||||
//Max attempts
|
||||
private const int MAX_ATTEMPTS = 10;
|
||||
private const int dimensions = 2; //2D
|
||||
|
||||
private static readonly List<Vector2> samples = new List<Vector2>();
|
||||
private static readonly List<Vector2> points = new List<Vector2>();
|
||||
private static List<Vector3> spawnPoints = new List<Vector3>();
|
||||
|
||||
private static int[,] grid;
|
||||
private static float cellSize;
|
||||
private static float radius;
|
||||
private static Bounds bounds;
|
||||
|
||||
public static List<Vector3> GetSpawnpoints(Terrain terrain, float radius, int seed)
|
||||
{
|
||||
PoissonDisc.radius = radius;
|
||||
PoissonDisc.bounds = terrain.terrainData.bounds;
|
||||
|
||||
cellSize = PoissonDisc.radius / Mathf.Sqrt(dimensions);
|
||||
|
||||
//Initialize terrain background grid
|
||||
int xCells = Mathf.CeilToInt(bounds.size.x / cellSize);
|
||||
int zCells = Mathf.CeilToInt(bounds.size.z / cellSize);
|
||||
grid = new int[xCells, zCells];
|
||||
|
||||
samples.Clear();
|
||||
points.Clear();
|
||||
spawnPoints = new List<Vector3>();
|
||||
|
||||
Random.InitState(seed);
|
||||
|
||||
//Random starting point
|
||||
Vector2 randomPos = new Vector2(Random.value * bounds.size.x, Random.value * bounds.size.z);
|
||||
samples.Add(randomPos);
|
||||
|
||||
while (samples.Count > 0)
|
||||
{
|
||||
int i = Random.Range(0, samples.Count);
|
||||
Vector2 sampleCenter = samples[i];
|
||||
|
||||
bool valid = false;
|
||||
|
||||
//Find next available position randomly outside radius^2
|
||||
for (int s = 0; s < MAX_ATTEMPTS; s++)
|
||||
{
|
||||
Random.InitState(seed + s + i);
|
||||
|
||||
Vector2 sample = RandomPointOnAnnulus(sampleCenter);
|
||||
|
||||
if (ValidSample(sample))
|
||||
{
|
||||
Vector3 spawnPoint = CreateSpawnPoint(terrain, sample);
|
||||
|
||||
spawnPoints.Add(spawnPoint);
|
||||
|
||||
points.Add(sample);
|
||||
samples.Add(sample);
|
||||
|
||||
Vector2Int gridPos = PositionToGridCoord(sample);
|
||||
grid[gridPos.x, gridPos.y] = points.Count;
|
||||
|
||||
valid = true;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
if (!valid)
|
||||
{
|
||||
samples.RemoveAt(i);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return spawnPoints;
|
||||
}
|
||||
|
||||
private static Vector2Int PositionToGridCoord(Vector2 pos)
|
||||
{
|
||||
return new Vector2Int((int)(pos.x / cellSize), (int)(pos.y / cellSize));
|
||||
}
|
||||
|
||||
private static bool ValidSample(Vector2 sample)
|
||||
{
|
||||
//Reject any samples outside of the terrain bounds
|
||||
bool valid = InsideBounds(sample);
|
||||
|
||||
if (valid)
|
||||
{
|
||||
Vector2Int gridPos = PositionToGridCoord(sample);
|
||||
|
||||
int xmin = Mathf.Max(gridPos.x - 2, 0);
|
||||
int xmax = Mathf.Min(gridPos.x + 2, grid.GetLength(0) - 1);
|
||||
int ymin = Mathf.Max(gridPos.y - 2, 0);
|
||||
int ymax = Mathf.Min(gridPos.y + 2, grid.GetLength(1) - 1);
|
||||
|
||||
//Check cells around current grid cell (3x3)
|
||||
for (int y = ymin; y <= ymax; y++)
|
||||
{
|
||||
for (int x = xmin; x <= xmax; x++)
|
||||
{
|
||||
int i = grid[x, y] - 1;
|
||||
|
||||
if (i != -1)
|
||||
{
|
||||
if (OutsideRadius(sample, points[i])) return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return valid;
|
||||
}
|
||||
|
||||
private static bool InsideBounds(Vector2 pos)
|
||||
{
|
||||
return (pos.x >= 0 && pos.x < bounds.size.x && pos.y >= 0 && pos.y < bounds.size.z);
|
||||
}
|
||||
|
||||
//Check if position falls within annulus
|
||||
private static bool OutsideRadius(Vector2 center, Vector2 position)
|
||||
{
|
||||
return ((center - position).sqrMagnitude < (radius * radius));
|
||||
}
|
||||
|
||||
private static Vector2 RandomPointOnAnnulus(Vector2 center)
|
||||
{
|
||||
float angle = 2f * Mathf.PI * Random.value;
|
||||
Vector2 dir = new Vector2(Mathf.Cos(angle), Mathf.Sin(angle));
|
||||
float dist = Random.Range(radius, radius * 2);
|
||||
|
||||
return center + (dir * dist);
|
||||
}
|
||||
|
||||
//Creates a world-space spawn point, relative to the terrain bounds
|
||||
private static Vector3 CreateSpawnPoint(Terrain t, Vector2 position)
|
||||
{
|
||||
return new Vector3((position.x + (t.GetPosition().x + bounds.center.x)) - bounds.extents.x, 0f, (position.y + (t.GetPosition().z + bounds.center.z)) - bounds.extents.z);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 657360a157f2dc9478f753fa10f1dc4d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/Runtime/PoissonDisc.cs
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,391 @@
|
|||
// Vegetation Spawner by Staggart Creations http://staggart.xyz
|
||||
// Copyright protected under Unity Asset Store EULA
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
using Random = UnityEngine.Random;
|
||||
|
||||
namespace sc.terrain.vegetationspawner
|
||||
{
|
||||
[AddComponentMenu("")] //Hide
|
||||
public class SpawnerBase : MonoBehaviour
|
||||
{
|
||||
private void OnValidate()
|
||||
{
|
||||
if (terrainSettings == null) terrainSettings = new TerrainSettings();
|
||||
}
|
||||
/// <summary>
|
||||
/// Global seed that affects all vegetation spawning
|
||||
/// </summary>
|
||||
public int seed = 0;
|
||||
|
||||
public List<Terrain> terrains = new List<Terrain>();
|
||||
[Tooltip("[Editor only] Opt to only affect terrains that are visible in the scene-view. Use this to speed up the spawning process." +
|
||||
"\n\nNote that the visibility check is not completely accurate, as it is based on bounding boxes.")]
|
||||
public bool visibleTerrainsOnly;
|
||||
|
||||
[Serializable]
|
||||
public class VegetationPrefab
|
||||
{
|
||||
public bool enabled = true;
|
||||
public string name = "VegetationItem";
|
||||
|
||||
public int seed;
|
||||
[Range(0f, 100f)]
|
||||
public float probability;
|
||||
public bool collisionCheck;
|
||||
public bool rejectUnderwater;
|
||||
public Vector2 heightRange = new Vector2(0f, 1000f);
|
||||
public Vector2 slopeRange = new Vector2(0f, 60f);
|
||||
public Vector2 curvatureRange = new Vector2(0f, 1f);
|
||||
|
||||
public List<TerrainLayerMask> layerMasks = new List<TerrainLayerMask>();
|
||||
public int instanceCount;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class TreeType : VegetationPrefab
|
||||
{
|
||||
[NonSerialized]
|
||||
public List<Vector3> spawnPoints = new List<Vector3>();
|
||||
|
||||
[SerializeField]
|
||||
public List<TreePrefab> prefabs = new List<TreePrefab>();
|
||||
|
||||
[Range(1f, 25f)]
|
||||
public float distance = 5f;
|
||||
|
||||
public Vector2 scaleRange = new Vector2(0.8f, 1.2f);
|
||||
public float sinkAmount = 0f;
|
||||
|
||||
public static TreeType New()
|
||||
{
|
||||
TreeType t = new TreeType();
|
||||
|
||||
//Constructor for inherent variables
|
||||
t.probability = 10f;
|
||||
|
||||
return t;
|
||||
}
|
||||
|
||||
public static TreeType New(GameObject initialPrefab)
|
||||
{
|
||||
TreeType t = New();
|
||||
t.seed = Random.Range(0, 9999);
|
||||
|
||||
//Add an initial prefab on construction
|
||||
TreePrefab p = new TreePrefab();
|
||||
p.prefab = initialPrefab;
|
||||
t.prefabs.Add(p);
|
||||
|
||||
if(initialPrefab) t.name = initialPrefab.name;
|
||||
|
||||
return t;
|
||||
}
|
||||
|
||||
}
|
||||
[SerializeField]
|
||||
public List<TreeType> treeTypes = new List<TreeType>();
|
||||
|
||||
[Serializable]
|
||||
public class TreePrefab
|
||||
{
|
||||
//Index of tree prototype in TerrainData
|
||||
public int index;
|
||||
[Range(0f, 100f)]
|
||||
public float probability = 100f;
|
||||
public GameObject prefab;
|
||||
}
|
||||
|
||||
public enum GrassType
|
||||
{
|
||||
Mesh,
|
||||
Texture
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class GrassPrefab : VegetationPrefab
|
||||
{
|
||||
public int index;
|
||||
public GrassType type = GrassType.Texture;
|
||||
[Tooltip("When enabled, orients the grass towards the camera on the Y axis")]
|
||||
public bool renderAsBillboard;
|
||||
public GameObject prefab;
|
||||
|
||||
#if UNITY_2021_2_OR_NEWER
|
||||
public bool gpuInstancing = true;
|
||||
[Range(0f, 100f)]
|
||||
public float holeEdgePadding = 2f;
|
||||
#endif
|
||||
|
||||
#if UNITY_2022_2_OR_NEWER
|
||||
[Range(0f, 100f)]
|
||||
public float alignToGround = 100f;
|
||||
[Range(0f,100f)]
|
||||
public float positionJitter;
|
||||
public bool useDensityScaling = true;
|
||||
public float density;
|
||||
#endif
|
||||
|
||||
public Texture2D billboard;
|
||||
|
||||
public Color mainColor = Color.white;
|
||||
//Typo! Has nothing to do with dairy :)
|
||||
[FormerlySerializedAs("secondairyColor")]
|
||||
public Color secondaryColor = Color.white;
|
||||
public bool linkColors = true;
|
||||
|
||||
public Vector2 minMaxHeight;
|
||||
public Vector2 minMaxWidth;
|
||||
[Range(0.01f, 0.5f)]
|
||||
[Tooltip("Grass size and color variation is controlled by an internal noise value. This controls the tiling size of the noise")]
|
||||
public float noiseSize = 0.1f;
|
||||
|
||||
public GrassPrefab()
|
||||
{
|
||||
probability = 25f;
|
||||
heightRange = new Vector2(0f, 1000f);
|
||||
slopeRange = new Vector2(0f, 60f);
|
||||
minMaxHeight = new Vector2(0.5f, 1f);
|
||||
minMaxWidth = new Vector2(0.8f, 1.2f);
|
||||
noiseSize = 0.1f;
|
||||
#if UNITY_2022_2_OR_NEWER
|
||||
alignToGround = 100f;
|
||||
#endif
|
||||
}
|
||||
|
||||
public static GrassPrefab Duplicate(GrassPrefab source)
|
||||
{
|
||||
GrassPrefab dest = new GrassPrefab();
|
||||
|
||||
dest.enabled = source.enabled;
|
||||
dest.name = source.name;
|
||||
|
||||
dest.type = source.type;
|
||||
dest.prefab = source.prefab;
|
||||
#if UNITY_2021_2_OR_NEWER
|
||||
dest.gpuInstancing = source.gpuInstancing;
|
||||
dest.holeEdgePadding = source.holeEdgePadding;
|
||||
#endif
|
||||
dest.billboard = source.billboard;
|
||||
dest.renderAsBillboard = source.renderAsBillboard;
|
||||
dest.noiseSize = source.noiseSize;
|
||||
|
||||
dest.mainColor = source.mainColor;
|
||||
dest.secondaryColor = source.secondaryColor;
|
||||
dest.linkColors = source.linkColors;
|
||||
|
||||
dest.minMaxHeight = source.minMaxHeight;
|
||||
dest.minMaxWidth = source.minMaxWidth;
|
||||
|
||||
//Base
|
||||
dest.seed = source.seed;
|
||||
dest.probability = source.probability;
|
||||
dest.heightRange = source.heightRange;
|
||||
dest.slopeRange = source.slopeRange;
|
||||
dest.curvatureRange = source.curvatureRange;
|
||||
|
||||
#if UNITY_2022_2_OR_NEWER
|
||||
dest.useDensityScaling = source.useDensityScaling;
|
||||
dest.alignToGround = source.alignToGround;
|
||||
dest.positionJitter = source.positionJitter;
|
||||
#endif
|
||||
|
||||
dest.layerMasks = new List<TerrainLayerMask>(source.layerMasks);
|
||||
for (int i = 0; i < dest.layerMasks.Count; i++)
|
||||
{
|
||||
dest.layerMasks[i] = new TerrainLayerMask(source.layerMasks[i].name, source.layerMasks[i].layerID, source.layerMasks[i].threshold);
|
||||
}
|
||||
|
||||
dest.collisionCheck = source.collisionCheck;
|
||||
dest.rejectUnderwater = source.rejectUnderwater;
|
||||
|
||||
return dest;
|
||||
}
|
||||
}
|
||||
public List<GrassPrefab> grassPrefabs = new List<GrassPrefab>();
|
||||
|
||||
[Serializable]
|
||||
public class TerrainLayerMask
|
||||
{
|
||||
public string name;
|
||||
public int layerID;
|
||||
[Range(0f, 1f)]
|
||||
public float threshold = 0f;
|
||||
|
||||
public TerrainLayerMask() {}
|
||||
|
||||
//Cloning
|
||||
public TerrainLayerMask(string name, int layerID, float threshold)
|
||||
{
|
||||
this.name = name;
|
||||
this.layerID = layerID;
|
||||
this.threshold = threshold;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class TerrainSettings
|
||||
{
|
||||
[Header("Rendering")]
|
||||
public bool drawTreesAndFoliage = true;
|
||||
|
||||
[Header("Trees")]
|
||||
[FormerlySerializedAs("perservePrefabLayer")]
|
||||
public bool preservePrefabLayer = true;
|
||||
public bool treeLightProbes = false;
|
||||
[Range(0f, 5000f)]
|
||||
public float treeDistance = 1000f;
|
||||
[Range(5f, 2000f)]
|
||||
public float billboardStart = 300f;
|
||||
public int maxMeshTrees = 50;
|
||||
|
||||
[Header("Grass")]
|
||||
#if UNITY_2022_2_OR_NEWER
|
||||
public DetailScatterMode detailScattermode = DetailScatterMode.CoverageMode;
|
||||
#endif
|
||||
public float grassDistance = 200f;
|
||||
[Range(0f, 1f)]
|
||||
public float grassDensity = 1f;
|
||||
|
||||
[Header("Grass wind")]
|
||||
[Range(0f, 1f)]
|
||||
public float windStrength = 0.15f;
|
||||
[Range(0f, 5f)]
|
||||
public float windSpeed = 1f;
|
||||
[Range(0.1f, 10f)]
|
||||
public float windFrequency = 2f;
|
||||
public Color wintTint = Color.white;
|
||||
}
|
||||
public TerrainSettings terrainSettings = new TerrainSettings();
|
||||
|
||||
[ContextMenu("Randomize seed")]
|
||||
public void RandomizeSeed()
|
||||
{
|
||||
seed = Random.Range(0, 9999);
|
||||
}
|
||||
|
||||
public void InitializeSeed(int start = 0)
|
||||
{
|
||||
Random.InitState(start + seed);
|
||||
}
|
||||
|
||||
private static int recursionCounter;
|
||||
|
||||
public static TreePrefab GetProbableTree(TreeType treeType)
|
||||
{
|
||||
recursionCounter = 0;
|
||||
|
||||
return PickTreeRecursive(treeType);
|
||||
}
|
||||
|
||||
//Chooses a prefab based on probability, recursively executed until succesful
|
||||
private static TreePrefab PickTreeRecursive(TreeType treeType)
|
||||
{
|
||||
if (treeType.prefabs.Count == 0) return null;
|
||||
|
||||
TreePrefab p = treeType.prefabs[Random.Range(0, treeType.prefabs.Count)];
|
||||
|
||||
//If prefabs have an extremely low probabilty, give up after 4 attempts
|
||||
if (recursionCounter >= 4) return null;
|
||||
|
||||
if ((Random.value * 100f) <= p.probability)
|
||||
{
|
||||
//Debug.Log("<color=green>" + p.prefab.name + " passed probability check..</color>");
|
||||
return p;
|
||||
}
|
||||
|
||||
//Debug.Log("<color=red>" + p.prefab.name + " failed probability check, trying another...</color>");
|
||||
|
||||
recursionCounter++;
|
||||
|
||||
//Note: It's possible for the next candidate to be the one that just failed
|
||||
return PickTreeRecursive(treeType);
|
||||
}
|
||||
|
||||
public void CopySettingsToTerrains()
|
||||
{
|
||||
foreach (Terrain t in terrains)
|
||||
{
|
||||
t.drawTreesAndFoliage = terrainSettings.drawTreesAndFoliage;
|
||||
t.treeMaximumFullLODCount = terrainSettings.maxMeshTrees;
|
||||
|
||||
t.preserveTreePrototypeLayers = terrainSettings.preservePrefabLayer;
|
||||
#if UNITY_EDITOR
|
||||
t.bakeLightProbesForTrees = terrainSettings.treeLightProbes;
|
||||
#endif
|
||||
t.treeBillboardDistance = terrainSettings.billboardStart;
|
||||
t.treeDistance = terrainSettings.treeDistance;
|
||||
|
||||
#if UNITY_2022_2_OR_NEWER
|
||||
t.terrainData.SetDetailScatterMode(terrainSettings.detailScattermode);
|
||||
#endif
|
||||
|
||||
t.detailObjectDistance = terrainSettings.grassDistance;
|
||||
t.detailObjectDensity = terrainSettings.grassDensity;
|
||||
|
||||
t.terrainData.wavingGrassAmount = terrainSettings.windStrength;
|
||||
t.terrainData.wavingGrassStrength = terrainSettings.windSpeed;
|
||||
t.terrainData.wavingGrassSpeed = terrainSettings.windFrequency;
|
||||
t.terrainData.wavingGrassTint = terrainSettings.wintTint;
|
||||
}
|
||||
}
|
||||
|
||||
public static bool HasMissingTerrain(List<Terrain> terrains)
|
||||
{
|
||||
bool isMissing = false;
|
||||
|
||||
for (int i = 0; i < terrains.Count; i++)
|
||||
{
|
||||
if (terrains[i] == null) isMissing = true;
|
||||
}
|
||||
|
||||
return isMissing;
|
||||
}
|
||||
|
||||
protected List<Terrain> GetTargetTerrains()
|
||||
{
|
||||
if (visibleTerrainsOnly == false) return terrains;
|
||||
|
||||
Plane[] frustumPlanes = new Plane[6];
|
||||
List<Terrain> targetTerrains = new List<Terrain>();
|
||||
|
||||
#if UNITY_EDITOR
|
||||
if (UnityEditor.SceneView.lastActiveSceneView.camera) GeometryUtility.CalculateFrustumPlanes(UnityEditor.SceneView.lastActiveSceneView.camera, frustumPlanes);
|
||||
else return null;
|
||||
#else
|
||||
if (Camera.main) GeometryUtility.CalculateFrustumPlanes(Camera.main, frustumPlanes);
|
||||
else return null;
|
||||
#endif
|
||||
|
||||
foreach (Terrain terrain in terrains)
|
||||
{
|
||||
if(terrain == null) continue;
|
||||
|
||||
Bounds bounds = terrain.terrainData.bounds;
|
||||
//Bounds is in local-space, shift it to virtually place it in world-space
|
||||
bounds.center += terrain.GetPosition();
|
||||
|
||||
if (GeometryUtility.TestPlanesAABB(frustumPlanes, bounds))
|
||||
{
|
||||
//Debug.Log($"{terrain.name} visible");
|
||||
targetTerrains.Add(terrain);
|
||||
}
|
||||
}
|
||||
|
||||
return targetTerrains;
|
||||
}
|
||||
|
||||
//Returns the splatmap index for a given terrain layer
|
||||
protected static int GetSplatmapID(int layerID)
|
||||
{
|
||||
if (layerID > 11) return 3;
|
||||
if (layerID > 7) return 2;
|
||||
if (layerID > 3) return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 46d07a286c8a8534d95be46ecea68b11
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/Runtime/SpawnerBase.cs
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,169 @@
|
|||
// Vegetation Spawner by Staggart Creations http://staggart.xyz
|
||||
// Copyright protected under Unity Asset Store EULA
|
||||
|
||||
using UnityEngine;
|
||||
|
||||
namespace sc.terrain.vegetationspawner
|
||||
{
|
||||
/// <summary>
|
||||
/// Extension class to simplify sampling terrain data
|
||||
/// </summary>
|
||||
public static class TerrainSampler
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts a world-space position to a normalized local-space XZ value (0-1 range)
|
||||
/// </summary>
|
||||
/// <param name="terrain"></param>
|
||||
/// <param name="worldPosition"></param>
|
||||
/// <returns></returns>
|
||||
public static Vector2 GetNormalizedPosition(this Terrain terrain, Vector3 worldPosition)
|
||||
{
|
||||
Vector3 localPos = worldPosition - terrain.GetPosition();
|
||||
|
||||
//Position relative to terrain as 0-1 value
|
||||
return new Vector2(
|
||||
localPos.x / terrain.terrainData.size.x,
|
||||
localPos.z / terrain.terrainData.size.z);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sample various height forms at a given normalized position
|
||||
/// </summary>
|
||||
/// <param name="terrain"></param>
|
||||
/// <param name="position">Values should be normalized within 0-1 range. Use GetNormalizedPosition to convert a world-space position to this.</param>
|
||||
/// <param name="height">Height value, relative to terrain local-space</param>
|
||||
/// <param name="worldHeight">Height value in world-space</param>
|
||||
/// <param name="normalizedHeight">0-1 height value, same as heightmap</param>
|
||||
public static void SampleHeight(this Terrain terrain, Vector2 position, out float height, out float worldHeight, out float normalizedHeight)
|
||||
{
|
||||
height = terrain.terrainData.GetInterpolatedHeight(position.x, position.y);
|
||||
|
||||
worldHeight = height + terrain.transform.position.y;
|
||||
//Normalized height value (0-1)
|
||||
normalizedHeight = height / terrain.terrainData.size.y;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the slope at a given position in 0-90 degrees
|
||||
/// </summary>
|
||||
/// <param name="terrain"></param>
|
||||
/// <param name="position">Values should be normalized within 0-1 range. Use GetNormalizedPosition to convert a world-space position to this.</param>
|
||||
/// <param name="average">Average from neighboring samples</param>
|
||||
/// <returns></returns>
|
||||
public static float GetSlope(this Terrain terrain, Vector2 position, bool average = false)
|
||||
{
|
||||
if (!average)
|
||||
{
|
||||
return terrain.terrainData.GetSteepness(position.x, position.y);
|
||||
}
|
||||
|
||||
return GetAverageSlope(terrain, position);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the 2Darray indices of the detail map at a given position
|
||||
/// </summary>
|
||||
/// <param name="terrain"></param>
|
||||
/// <param name="position">Values should be normalized within 0-1 range. Use GetNormalizedPosition to convert a world-space position to this.</param>
|
||||
/// <returns></returns>
|
||||
public static Vector2Int DetailIndex(this Terrain terrain, Vector2 position)
|
||||
{
|
||||
return new Vector2Int(
|
||||
Mathf.CeilToInt(position.x * terrain.terrainData.detailResolution),
|
||||
Mathf.CeilToInt(position.y * terrain.terrainData.detailResolution)
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the texel indices of the splatmap map at a given position
|
||||
/// </summary>
|
||||
/// <param name="terrain"></param>
|
||||
/// <param name="position">Values should be normalized within 0-1 range. Use GetNormalizedPosition to convert a world-space position to this.</param>
|
||||
/// <returns></returns>
|
||||
public static Vector2Int SplatmapTexelIndex(this Terrain terrain, Vector2 position)
|
||||
{
|
||||
return new Vector2Int(
|
||||
Mathf.CeilToInt(position.x * terrain.terrainData.alphamapWidth),
|
||||
Mathf.CeilToInt(position.y * terrain.terrainData.alphamapHeight)
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a XZ world-space position based on detail indices.
|
||||
/// </summary>
|
||||
/// <param name="terrain"></param>
|
||||
/// <param name="x"></param>
|
||||
/// <param name="y"></param>
|
||||
/// <returns>World position with X and Z component. Note: y-component is 0!</returns>
|
||||
public static Vector3 DetailToWorld(this Terrain terrain, int x, int y)
|
||||
{
|
||||
//XZ world position
|
||||
return new Vector3(
|
||||
terrain.GetPosition().x + (((float)x / (float)terrain.terrainData.detailWidth) * (terrain.terrainData.size.x)),
|
||||
0f,
|
||||
terrain.GetPosition().z + (((float)y / (float)terrain.terrainData.detailHeight) * (terrain.terrainData.size.z))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an averaged slope at the given position. Average is taken from 5 samples.
|
||||
/// </summary>
|
||||
/// <param name="terrain"></param>
|
||||
/// <param name="position">Values should be normalized within 0-1 range. Use GetNormalizedPosition to convert a world-space position to this.</param>
|
||||
/// <returns>Slope value in 0-90 degrees</returns>
|
||||
public static float GetAverageSlope(Terrain terrain, Vector2 position)
|
||||
{
|
||||
float texelSize = (1f / terrain.terrainData.heightmapResolution) * 2f;
|
||||
|
||||
float slope = 0f;
|
||||
|
||||
//Center
|
||||
slope += terrain.terrainData.GetSteepness(position.x, position.y);
|
||||
//Right
|
||||
slope += terrain.terrainData.GetSteepness(position.x + texelSize, position.y);
|
||||
//Left
|
||||
slope += terrain.terrainData.GetSteepness(position.x - texelSize, position.y);
|
||||
//Up
|
||||
slope += terrain.terrainData.GetSteepness(position.x, position.y + texelSize);
|
||||
//Down
|
||||
slope += terrain.terrainData.GetSteepness(position.x, position.y - texelSize);
|
||||
|
||||
return slope / 5f;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the curvature value at a given position.
|
||||
/// </summary>
|
||||
/// <param name="terrain"></param>
|
||||
/// <param name="position">Values should be normalized within 0-1 range. Use GetNormalizedPosition to convert a world-space position to this.</param>
|
||||
/// <param name="radius">Radius in heightmap texel-space</param>
|
||||
/// <returns>Curvature value, 0= flat, 1=convex. One minus value to get 0-1 concavity value</returns>
|
||||
public static float SampleConvexity(this Terrain terrain, Vector2 position, float radius = 3f)
|
||||
{
|
||||
float texelSize = (1f / terrain.terrainData.heightmapResolution) * radius;
|
||||
|
||||
float posX = terrain.terrainData.GetInterpolatedNormal(position.x + texelSize, position.y).x;
|
||||
float negX = terrain.terrainData.GetInterpolatedNormal(position.x - texelSize, position.y).x;
|
||||
|
||||
float x = (posX - negX) + 0.5f;
|
||||
|
||||
float posY = terrain.terrainData.GetInterpolatedNormal(position.x, position.y + texelSize).z;
|
||||
float NegY = terrain.terrainData.GetInterpolatedNormal(position.x, position.y - texelSize).z;
|
||||
|
||||
float y = (posY - NegY) + 0.5f;
|
||||
|
||||
//Blend overlay
|
||||
return (y < 0.5f) ? 2.0f * x * y : 1.0f - 2.0f * (1.0f - x) * (1.0f - y);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Remaps a convexity value to a curvature range. 0=concave, 0.5=flat, 1=convex
|
||||
/// </summary>
|
||||
/// <param name="convexity"></param>
|
||||
/// <returns></returns>
|
||||
public static float ConvexityToCurvature(float convexity)
|
||||
{
|
||||
return (convexity - (1 - convexity)) * 0.5f + 0.5f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d92fde58a648c2447a2cba47e9bf55aa
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/Runtime/TerrainSampler.cs
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,328 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using Object = UnityEngine.Object;
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
|
||||
namespace sc.terrain.vegetationspawner
|
||||
{
|
||||
public static class VegetationExtensions
|
||||
{
|
||||
#region Trees
|
||||
public static bool ContainsTreePrefab(this Terrain terrain, Object prefab)
|
||||
{
|
||||
for (int i = 0; i < terrain.terrainData.treePrototypes.Length; i++)
|
||||
{
|
||||
TreePrototype tree = terrain.terrainData.treePrototypes[i];
|
||||
|
||||
if (tree.prefab == prefab) return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Checks all the tree instances on the terrain, and removes the one's whose position falls within the radius of the given position
|
||||
/// </summary>
|
||||
/// <param name="terrain"></param>
|
||||
/// <param name="position"></param>
|
||||
/// <param name="radius"></param>
|
||||
public static void RemoveTreesAtPosition(this Terrain terrain, Vector3 position, float radius)
|
||||
{
|
||||
TreeInstance[] instances = terrain.GetTreeInstances();
|
||||
|
||||
List<TreeInstance> treeInstanceCollection = new List<TreeInstance>();
|
||||
|
||||
float r = radius * radius;
|
||||
for (int i = 0; i < instances.Length; i++)
|
||||
{
|
||||
//Leave trees outside of the radius
|
||||
if ((instances[i].TransformTreePosition(terrain) - position).sqrMagnitude >= r)
|
||||
{
|
||||
treeInstanceCollection.Add(instances[i]);
|
||||
}
|
||||
}
|
||||
|
||||
Debug.Log($"Removed {instances.Length - treeInstanceCollection.Count} trees");
|
||||
|
||||
terrain.terrainData.SetTreeInstances(treeInstanceCollection.ToArray(), false);
|
||||
|
||||
#if UNITY_EDITOR
|
||||
EditorUtility.SetDirty(terrain.terrainData);
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes all tree instances of a given prefab
|
||||
/// </summary>
|
||||
/// <param name="terrain"></param>
|
||||
/// <param name="prefab"></param>
|
||||
public static void RemoveTrees(this Terrain terrain, Object prefab)
|
||||
{
|
||||
int prototypeIndex = terrain.GetTreePrototypeIndex(prefab);
|
||||
|
||||
List<TreeInstance> treeInstanceCollection = new List<TreeInstance>(terrain.terrainData.treeInstances);
|
||||
//Clear all existing instances first, setting the tree instances is additive
|
||||
for (int i = 0; i < treeInstanceCollection.Count; i++)
|
||||
{
|
||||
treeInstanceCollection.RemoveAll(x => x.prototypeIndex == prototypeIndex);
|
||||
}
|
||||
|
||||
terrain.terrainData.SetTreeInstances(treeInstanceCollection.ToArray(), false);
|
||||
|
||||
#if UNITY_EDITOR
|
||||
EditorUtility.SetDirty(terrain.terrainData);
|
||||
#endif
|
||||
}
|
||||
|
||||
public static TreeInstance[] GetTreeInstances(this Terrain terrain, Object targetPrefab = null)
|
||||
{
|
||||
TreeInstance[] instances = new TreeInstance[0];
|
||||
if (targetPrefab)
|
||||
{
|
||||
var prototypeIndex = -1;
|
||||
|
||||
//Get the index of the given prefab
|
||||
for (int i = 0; i < terrain.terrainData.treePrototypes.Length; i++)
|
||||
{
|
||||
if (terrain.terrainData.treePrototypes[i].prefab == targetPrefab)
|
||||
{
|
||||
prototypeIndex = i;
|
||||
}
|
||||
}
|
||||
|
||||
if (prototypeIndex >= 0)
|
||||
{
|
||||
//Get all instances matching the prefab index
|
||||
instances = terrain.terrainData.treeInstances.Where(x => x.prototypeIndex == prototypeIndex).ToArray();
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new ArgumentException($"Prefab \"{targetPrefab.name}\" could not be found on terrain \"{terrain.name}\"");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
instances = terrain.terrainData.treeInstances;
|
||||
}
|
||||
|
||||
return instances;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public struct TreeTransform
|
||||
{
|
||||
public Vector3 localPosition;
|
||||
public Vector3 position;
|
||||
public Quaternion rotation;
|
||||
public Vector3 scale;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Convert the local-space position of a tree instance into world-space
|
||||
/// </summary>
|
||||
/// <param name="tree"></param>
|
||||
/// <param name="terrain"></param>
|
||||
/// <returns></returns>
|
||||
private static Vector3 TransformTreePosition(this TreeInstance tree, Terrain terrain)
|
||||
{
|
||||
//Terrains never have a rotation/scale, so scaling and offsetting suffices
|
||||
return Vector3.Scale(tree.position, terrain.terrainData.size) + terrain.GetPosition();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Convert the Y-rotation of a tree instance into a usable Quaternion
|
||||
/// </summary>
|
||||
/// <param name="tree"></param>
|
||||
/// <param name="terrain"></param>
|
||||
/// <returns></returns>
|
||||
private static Quaternion TransformRotation(this TreeInstance tree)
|
||||
{
|
||||
return Quaternion.Euler(0f, Mathf.Rad2Deg * tree.rotation, 0f);
|
||||
}
|
||||
|
||||
public static TreeTransform[] CreateTreeTransforms(this Terrain terrain, TreeInstance[] instances)
|
||||
{
|
||||
int instanceCount = instances.Length;
|
||||
TreeTransform[] transforms = new TreeTransform[instanceCount];
|
||||
|
||||
for (int i = 0; i < instanceCount; i++)
|
||||
{
|
||||
transforms[i] = new TreeTransform
|
||||
{
|
||||
localPosition = Vector3.Scale(instances[i].position, terrain.terrainData.size),
|
||||
position = instances[i].TransformTreePosition(terrain),
|
||||
rotation = instances[i].TransformRotation(),
|
||||
scale = new Vector3(instances[i].widthScale, instances[i].heightScale, instances[i].widthScale)
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
return transforms;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the current tree instances and converts them to world-space transforms.
|
||||
/// </summary>
|
||||
/// <param name="terrain"></param>
|
||||
/// <param name="prefab">Filter by a specific tree prefab</param>
|
||||
/// <returns>An array of structs containing the position/rotation/scale</returns>
|
||||
/// <exception cref="ArgumentException">Tree prefab isn't present on the terrain</exception>
|
||||
public static TreeTransform[] GetTreeTransforms(this Terrain terrain, Object prefab = null)
|
||||
{
|
||||
TreeInstance[] instances = terrain.GetTreeInstances(prefab);
|
||||
|
||||
TreeTransform[] transforms = terrain.CreateTreeTransforms(instances);
|
||||
|
||||
return transforms;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Instantiate the terrain's tree prefabs as GameObjects in the scene
|
||||
/// </summary>
|
||||
/// <param name="terrain"></param>
|
||||
/// <param name="targetPrefab">Limit the operation to a specific tree prefab</param>
|
||||
/// <returns></returns>
|
||||
public static GameObject[] InstantiateTreePrefabs(this Terrain terrain, Object targetPrefab = null)
|
||||
{
|
||||
List<Object> prefabs = new List<Object>();
|
||||
if (!targetPrefab)
|
||||
{
|
||||
for (int i = 0; i < terrain.terrainData.treePrototypes.Length; i++)
|
||||
{
|
||||
if (terrain.terrainData.treePrototypes[i].prefab) prefabs.Add(terrain.terrainData.treePrototypes[i].prefab);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
prefabs.Add(targetPrefab);
|
||||
}
|
||||
|
||||
List<GameObject> objs = new List<GameObject>();
|
||||
|
||||
foreach (Object prefab in prefabs)
|
||||
{
|
||||
TreeTransform[] transforms = terrain.GetTreeTransforms(prefab);
|
||||
|
||||
for (int i = 0; i < transforms.Length; i++)
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
GameObject instance = PrefabUtility.InstantiatePrefab(prefab, terrain.transform) as GameObject;
|
||||
#else
|
||||
GameObject instance = (GameObject)Object.Instantiate(prefab, terrain.transform);
|
||||
#endif
|
||||
|
||||
objs.Add(instance);
|
||||
|
||||
instance.name = $"{prefab.name} ({i})";
|
||||
|
||||
instance.transform.SetPositionAndRotation(transforms[i].position, transforms[i].rotation);
|
||||
instance.transform.localScale = transforms[i].scale;
|
||||
}
|
||||
}
|
||||
|
||||
return objs.ToArray();
|
||||
}
|
||||
|
||||
public static TreePrototype GetTreePrototype(this Terrain terrain, Object prefab)
|
||||
{
|
||||
//Get the index of the given prefab
|
||||
for (int i = 0; i < terrain.terrainData.treePrototypes.Length; i++)
|
||||
{
|
||||
if (terrain.terrainData.treePrototypes[i].prefab == prefab)
|
||||
{
|
||||
return terrain.terrainData.treePrototypes[i];
|
||||
}
|
||||
}
|
||||
|
||||
throw new ArgumentException($"Prefab \"{prefab.name}\" could not be found on terrain \"{terrain.name}\"");
|
||||
}
|
||||
|
||||
public static int GetTreePrototypeIndex(this Terrain terrain, Object prefab)
|
||||
{
|
||||
//Get the index of the given prefab
|
||||
for (int i = 0; i < terrain.terrainData.treePrototypes.Length; i++)
|
||||
{
|
||||
if (terrain.terrainData.treePrototypes[i].prefab == prefab)
|
||||
{
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
throw new ArgumentException($"Prefab \"{prefab.name}\" could not be found on terrain \"{terrain.name}\"");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates GameObjects with a capsule collider for every tree instance on the terrain
|
||||
/// </summary>
|
||||
/// <param name="terrain"></param>
|
||||
/// <param name="targetPrefab">If left unassigned, processes all tree types</param>
|
||||
/// <returns></returns>
|
||||
public static CapsuleCollider[] InstantiateTreeColliders(this Terrain terrain, Object targetPrefab = null)
|
||||
{
|
||||
//Terrain system only supports capsule colliders
|
||||
List<CapsuleCollider> colliders = new List<CapsuleCollider>();
|
||||
|
||||
TreePrototype[] treeTypes;
|
||||
|
||||
if (targetPrefab)
|
||||
{
|
||||
treeTypes = terrain.terrainData.treePrototypes.Where(x => x.prefab == targetPrefab).ToArray();
|
||||
}
|
||||
else
|
||||
{
|
||||
treeTypes = terrain.terrainData.treePrototypes;
|
||||
}
|
||||
|
||||
//Debug.Log($"Extracting for {trees.Length} different trees");
|
||||
|
||||
for (int i = 0; i < treeTypes.Length; i++)
|
||||
{
|
||||
if (treeTypes[i].prefab == null)
|
||||
{
|
||||
throw new Exception($"Tree item at index {i} is missing a prefab");
|
||||
}
|
||||
|
||||
CapsuleCollider prefabCollider = treeTypes[i].prefab.GetComponent<CapsuleCollider>();
|
||||
|
||||
if(!prefabCollider) continue;
|
||||
|
||||
//Get all instances matching the current prototype
|
||||
TreeInstance[] instances = terrain.terrainData.treeInstances.Where(x => x.prototypeIndex == i).ToArray();
|
||||
|
||||
//Debug.Log($"Extracting {instances.Length} instances");
|
||||
for (int j = 0; j < instances.Length; j++)
|
||||
{
|
||||
GameObject obj = new GameObject(treeTypes[i].prefab.name + j);
|
||||
obj.name = $"{treeTypes[i].prefab.name} Collider ({j})";
|
||||
|
||||
CapsuleCollider capsuleCollider = obj.AddComponent<CapsuleCollider>();
|
||||
|
||||
//Copy values
|
||||
capsuleCollider.isTrigger = prefabCollider.isTrigger;
|
||||
capsuleCollider.material = prefabCollider.sharedMaterial;
|
||||
capsuleCollider.center = prefabCollider.center;
|
||||
capsuleCollider.radius = prefabCollider.radius;
|
||||
capsuleCollider.height = prefabCollider.height;
|
||||
capsuleCollider.direction = prefabCollider.direction;
|
||||
|
||||
colliders.Add(capsuleCollider);
|
||||
|
||||
obj.layer = terrain.preserveTreePrototypeLayers ? treeTypes[i].prefab.layer : terrain.gameObject.layer;
|
||||
|
||||
obj.transform.localScale = Vector3.Scale(new Vector3(instances[j].widthScale, instances[j].heightScale, instances[j].widthScale), treeTypes[i].prefab.transform.localScale);
|
||||
|
||||
obj.transform.SetPositionAndRotation(instances[j].TransformTreePosition(terrain), instances[j].TransformRotation());
|
||||
obj.transform.parent = terrain.transform;
|
||||
obj.isStatic = true;
|
||||
}
|
||||
}
|
||||
|
||||
return colliders.ToArray();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0228d9b599374de19d8fe3578d6a3b78
|
||||
timeCreated: 1678696642
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/Runtime/VegetationExtensions.cs
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,174 @@
|
|||
using UnityEngine;
|
||||
|
||||
namespace sc.terrain.vegetationspawner
|
||||
{
|
||||
public partial class VegetationSpawner
|
||||
{
|
||||
public int cellSize = 64;
|
||||
public int cellDivisions = 4;
|
||||
[System.NonSerialized]
|
||||
public static bool VisualizeCells = false;
|
||||
public static bool VisualizeWaterlevel = false;
|
||||
[Tooltip("When enabled, raycasting is also performed on the corners of each cell. This is slower to calculate, but will yield higher precision around collider edges")]
|
||||
public bool highPrecisionCollision = true;
|
||||
public LayerMask collisionLayerMask = -1;
|
||||
|
||||
public void RebuildCollisionCacheIfNeeded()
|
||||
{
|
||||
if (terrainCells.Count == 0) RebuildCollisionCache();
|
||||
}
|
||||
|
||||
public void RebuildCollisionCache()
|
||||
{
|
||||
if (tempColliders != null)
|
||||
{
|
||||
for (int i = 0; i < tempColliders.Length; i++)
|
||||
{
|
||||
if (tempColliders[i] == null) continue;
|
||||
tempColliders[i].gameObject.SetActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
RaycastHit hit;
|
||||
|
||||
terrainCells.Clear();
|
||||
|
||||
foreach (Terrain terrain in terrains)
|
||||
{
|
||||
if(terrain == null) continue;;
|
||||
|
||||
if(terrain.gameObject.activeInHierarchy == false) continue;
|
||||
|
||||
int xCount = Mathf.CeilToInt(terrain.terrainData.size.x / cellSize);
|
||||
int zCount = Mathf.CeilToInt(terrain.terrainData.size.z / cellSize);
|
||||
|
||||
Cell[,] cellGrid = new Cell[xCount, zCount];
|
||||
|
||||
for (int x = 0; x < xCount; x++)
|
||||
{
|
||||
for (int z = 0; z < zCount; z++)
|
||||
{
|
||||
Vector3 wPos = new Vector3(terrain.GetPosition().x + (x * cellSize) + (cellSize * 0.5f), 0f, terrain.GetPosition().z + (z * cellSize) + (cellSize * 0.5f));
|
||||
|
||||
Vector2 normalizeTerrainPos = terrain.GetNormalizedPosition(wPos);
|
||||
|
||||
terrain.SampleHeight(normalizeTerrainPos, out _, out wPos.y, out _);
|
||||
|
||||
Cell cell = Cell.New(wPos, cellSize);
|
||||
cellDivisions = Mathf.Max(1, cellDivisions);
|
||||
|
||||
cell.Subdivide(cellDivisions);
|
||||
|
||||
cellGrid[x, z] = cell;
|
||||
|
||||
for (int sX = 0; sX < cellDivisions; sX++)
|
||||
{
|
||||
for (int sZ = 0; sZ < cellDivisions; sZ++)
|
||||
{
|
||||
Bounds b = cell.subCells[sX, sZ].bounds;
|
||||
|
||||
//Sample corners of cell
|
||||
if (highPrecisionCollision)
|
||||
{
|
||||
|
||||
Vector3[] corners = new Vector3[]
|
||||
{
|
||||
//BL corner
|
||||
new Vector3(b.min.x, b.center.y, b.min.z),
|
||||
//TL corner
|
||||
new Vector3(b.min.x, b.center.y, b.min.z + b.size.z),
|
||||
//BR corner
|
||||
new Vector3(b.max.x, b.center.y, b.min.z),
|
||||
//TR corner
|
||||
new Vector3(b.max.x, b.center.y, b.max.z),
|
||||
};
|
||||
|
||||
int hitCount = corners.Length;
|
||||
for (int i = 0; i < corners.Length; i++)
|
||||
{
|
||||
if (Physics.Raycast(corners[i] + (Vector3.up * 100f), -Vector3.up, out hit, 150f, collisionLayerMask, QueryTriggerInteraction.Ignore))
|
||||
{
|
||||
//Require to check for type, since its possible to hit a neighboring terrains
|
||||
if (hit.collider.GetType() == typeof(TerrainCollider))
|
||||
{
|
||||
hitCount--;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
hitCount--;
|
||||
}
|
||||
}
|
||||
|
||||
//Remove cell when all rays missed
|
||||
if (hitCount == 0) cell.subCells[sX, sZ] = null;
|
||||
}
|
||||
//Sample center of cell
|
||||
else
|
||||
{
|
||||
//Remove cell if hitting terrain
|
||||
if (Physics.Raycast(b.center + (Vector3.up * 100f), -Vector3.up, out hit, 150f, collisionLayerMask, QueryTriggerInteraction.Ignore))
|
||||
{
|
||||
if (hit.collider.GetType() == typeof(TerrainCollider))
|
||||
{
|
||||
cell.subCells[sX, sZ] = null;
|
||||
}
|
||||
}
|
||||
//Remove if nothing was hit (outside of terrain bounds)
|
||||
else
|
||||
{
|
||||
cell.subCells[sX, sZ] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
terrainCells.Add(terrain, cellGrid);
|
||||
}
|
||||
|
||||
if (tempColliders != null)
|
||||
{
|
||||
for (int i = 0; i < tempColliders.Length; i++)
|
||||
{
|
||||
if (tempColliders[i] == null) continue;
|
||||
tempColliders[i].gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool InsideOccupiedCell(Terrain terrain, Vector3 worldPos, Vector2 normalizedPos)
|
||||
{
|
||||
//No collision cells baked for terrain, user will probably notice
|
||||
if (terrainCells.ContainsKey(terrain) == false) return false;
|
||||
|
||||
Cell[,] cells = terrainCells[terrain];
|
||||
|
||||
Vector2Int cellIndex = Cell.PositionToCellIndex(terrain, normalizedPos, cellSize);
|
||||
Cell mainCell = cells[cellIndex.x, cellIndex.y];
|
||||
|
||||
if (mainCell != null)
|
||||
{
|
||||
Cell subCell = mainCell.GetSubcell(worldPos, cellSize, cellDivisions);
|
||||
|
||||
if (subCell != null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
//Cell doesn't exist
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogErrorFormat("Position {0} falls outside of the cell grid", worldPos);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 80965793ef514217b8d6fe68b83329bf
|
||||
timeCreated: 1614365671
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/Runtime/VegetationSpawner.Collision.cs
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,376 @@
|
|||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace sc.terrain.vegetationspawner
|
||||
{
|
||||
public partial class VegetationSpawner
|
||||
{
|
||||
public void RefreshGrassPrototypes()
|
||||
{
|
||||
foreach (Terrain terrain in terrains)
|
||||
{
|
||||
List<DetailPrototype> grassPrototypeCollection = new List<DetailPrototype>();
|
||||
int index = 0;
|
||||
foreach (GrassPrefab item in grassPrefabs)
|
||||
{
|
||||
item.index = index;
|
||||
|
||||
DetailPrototype detailPrototype = new DetailPrototype();
|
||||
|
||||
UpdateGrassItem(item, detailPrototype);
|
||||
|
||||
grassPrototypeCollection.Add(detailPrototype);
|
||||
|
||||
index++;
|
||||
}
|
||||
if (grassPrototypeCollection.Count > 0) terrain.terrainData.detailPrototypes = grassPrototypeCollection.ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
public void AddGrassItemsFromTerrain(Terrain terrain)
|
||||
{
|
||||
GrassPrefab[] grassItems = new GrassPrefab[terrain.terrainData.detailPrototypes.Length];
|
||||
|
||||
for (int i = 0; i < terrain.terrainData.detailPrototypes.Length; i++)
|
||||
{
|
||||
grassItems[i] = new GrassPrefab();
|
||||
|
||||
grassItems[i].type = terrain.terrainData.detailPrototypes[i].usePrototypeMesh ? GrassType.Mesh : GrassType.Texture;
|
||||
grassItems[i].renderAsBillboard = terrain.terrainData.detailPrototypes[i].renderMode == DetailRenderMode.GrassBillboard;
|
||||
grassItems[i].billboard = terrain.terrainData.detailPrototypes[i].prototypeTexture;
|
||||
grassItems[i].minMaxHeight = new Vector2(terrain.terrainData.detailPrototypes[i].minHeight, terrain.terrainData.detailPrototypes[i].maxHeight);
|
||||
grassItems[i].minMaxWidth = new Vector2(terrain.terrainData.detailPrototypes[i].minWidth, terrain.terrainData.detailPrototypes[i].maxWidth);
|
||||
grassItems[i].noiseSize = terrain.terrainData.detailPrototypes[i].noiseSpread;
|
||||
grassItems[i].mainColor = terrain.terrainData.detailPrototypes[i].healthyColor;
|
||||
grassItems[i].secondaryColor = terrain.terrainData.detailPrototypes[i].dryColor;
|
||||
grassItems[i].prefab = terrain.terrainData.detailPrototypes[i].prototype;
|
||||
|
||||
if(grassItems[i].billboard) grassItems[i].name = grassItems[i].billboard.name;
|
||||
if(grassItems[i].prefab) grassItems[i].name = grassItems[i].prefab.name;
|
||||
|
||||
#if UNITY_2021_2_OR_NEWER
|
||||
grassItems[i].seed = terrain.terrainData.detailPrototypes[i].noiseSeed;
|
||||
grassItems[i].gpuInstancing = terrain.terrainData.detailPrototypes[i].useInstancing;
|
||||
grassItems[i].holeEdgePadding = terrain.terrainData.detailPrototypes[i].holeEdgePadding;
|
||||
#endif
|
||||
|
||||
#if UNITY_2022_2_OR_NEWER
|
||||
grassItems[i].useDensityScaling = terrain.terrainData.detailPrototypes[i].useDensityScaling;
|
||||
grassItems[i].alignToGround = terrain.terrainData.detailPrototypes[i].alignToGround * 100f;
|
||||
grassItems[i].positionJitter = terrain.terrainData.detailPrototypes[i].positionJitter * 100f;
|
||||
grassItems[i].density = terrain.terrainData.detailPrototypes[i].density;
|
||||
#endif
|
||||
}
|
||||
|
||||
this.grassPrefabs = new List<GrassPrefab>(grassItems);
|
||||
}
|
||||
|
||||
public void AddNewGrassItem()
|
||||
{
|
||||
GrassPrefab newGrass = new GrassPrefab();
|
||||
grassPrefabs.Add(newGrass);
|
||||
|
||||
newGrass.seed = Random.Range(0, 9999);
|
||||
newGrass.index = grassPrefabs.Count;
|
||||
|
||||
RefreshGrassPrototypes();
|
||||
|
||||
//Potentially mirror the operation to GPU Instancer, but functionality is too tightly woven into GPUI's editor code
|
||||
}
|
||||
|
||||
public void RemoveGrassItem(int index)
|
||||
{
|
||||
grassPrefabs.RemoveAt(index);
|
||||
RefreshGrassPrototypes();
|
||||
|
||||
//Potentially mirror the operation to GPU Instancer, but functionality is too tightly woven into GPUI's editor code
|
||||
}
|
||||
|
||||
public void SpawnAllGrass(Terrain targetTerrain = null)
|
||||
{
|
||||
RefreshGrassPrototypes();
|
||||
|
||||
InitializeSeed();
|
||||
|
||||
foreach (GrassPrefab item in grassPrefabs)
|
||||
{
|
||||
SpawnGrass(item, targetTerrain);
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateProperties(GrassPrefab item)
|
||||
{
|
||||
foreach (Terrain terrain in terrains)
|
||||
{
|
||||
//Note only works when creating these copies :/
|
||||
DetailPrototype[] detailPrototypes = terrain.terrainData.detailPrototypes;
|
||||
DetailPrototype detailPrototype = GetGrassPrototype(item, terrain);
|
||||
|
||||
//Could have been removed
|
||||
if(detailPrototype == null) continue;
|
||||
|
||||
UpdateGrassItem(item, detailPrototype);
|
||||
|
||||
detailPrototypes[item.index] = detailPrototype;
|
||||
terrain.terrainData.detailPrototypes = detailPrototypes;
|
||||
|
||||
#if UNITY_EDITOR
|
||||
UnityEditor.EditorUtility.SetDirty(terrain);
|
||||
UnityEditor.EditorUtility.SetDirty(terrain.terrainData);
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void SetDetailResolution()
|
||||
{
|
||||
foreach (Terrain terrain in terrains)
|
||||
{
|
||||
terrain.terrainData.SetDetailResolution(detailResolution, grassPatchSize);
|
||||
#if UNITY_EDITOR
|
||||
UnityEditor.EditorUtility.SetDirty(terrain.terrainData);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
public void SpawnGrass(GrassPrefab item, Terrain targetTerrain = null)
|
||||
{
|
||||
if (item.collisionCheck) RebuildCollisionCacheIfNeeded();
|
||||
|
||||
item.instanceCount = 0;
|
||||
|
||||
if (targetTerrain == null)
|
||||
{
|
||||
List<Terrain> targetTerrains = GetTargetTerrains();
|
||||
|
||||
showProgressBar = false;
|
||||
var progress = true;
|
||||
int counter = 0;
|
||||
|
||||
foreach (Terrain terrain in targetTerrains)
|
||||
{
|
||||
counter++;
|
||||
|
||||
#if UNITY_EDITOR
|
||||
if (UnityEditor.EditorUtility.DisplayCancelableProgressBar("Vegetation Spawner", $"Spawning \"{item.name}\" on {terrain.name} ({counter}/{targetTerrains.Count})", (float)counter / (float)targetTerrains.Count))
|
||||
{
|
||||
progress = false;
|
||||
}
|
||||
#endif
|
||||
|
||||
if(progress) SpawnGrassOnTerrain(terrain, item);
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
UnityEditor.EditorUtility.ClearProgressBar();
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
showProgressBar = true;
|
||||
SpawnGrassOnTerrain(targetTerrain, item);
|
||||
}
|
||||
|
||||
onGrassRespawn?.Invoke(item);
|
||||
}
|
||||
|
||||
private void SpawnGrassOnTerrain(Terrain terrain, GrassPrefab item)
|
||||
{
|
||||
//int[,] map = terrain.terrainData.GetDetailLayer(0, 0, terrain.terrainData.detailWidth, terrain.terrainData.detailHeight, item.index);
|
||||
int[,] map = new int[terrain.terrainData.detailWidth, terrain.terrainData.detailHeight];
|
||||
|
||||
int counter = 0;
|
||||
int cellCount = terrain.terrainData.detailWidth * terrain.terrainData.detailHeight;
|
||||
|
||||
if (item.enabled)
|
||||
{
|
||||
for (int x = 0; x < terrain.terrainData.detailWidth; x++)
|
||||
{
|
||||
for (int y = 0; y < terrain.terrainData.detailHeight; y++)
|
||||
{
|
||||
counter++;
|
||||
|
||||
#if UNITY_EDITOR
|
||||
if (showProgressBar)
|
||||
{
|
||||
//Show progress bar every 10%
|
||||
if (counter % (cellCount / 10) == 0)
|
||||
{
|
||||
UnityEditor.EditorUtility.DisplayProgressBar("Vegetation Spawner", $"Spawning \"{item.name}\" on {terrain.name} ({counter}/{cellCount})", (float)counter / (float)cellCount);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
InitializeSeed(x * y + item.seed);
|
||||
|
||||
//Default
|
||||
int instanceCount = 1;
|
||||
|
||||
//XZ world position
|
||||
Vector3 wPos = terrain.DetailToWorld(y, x);
|
||||
|
||||
Vector2 normalizedPos = terrain.GetNormalizedPosition(wPos);
|
||||
|
||||
//Skip if failing probability check
|
||||
if (((Random.value * 100f) <= item.probability) == false)
|
||||
{
|
||||
instanceCount = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (item.collisionCheck)
|
||||
{
|
||||
//Check for collision
|
||||
if (InsideOccupiedCell(terrain, wPos, normalizedPos))
|
||||
{
|
||||
instanceCount = 0;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
terrain.SampleHeight(normalizedPos, out _, out wPos.y, out _);
|
||||
|
||||
if (item.rejectUnderwater && wPos.y < waterHeight)
|
||||
{
|
||||
instanceCount = 0;
|
||||
continue;
|
||||
}
|
||||
//Check height
|
||||
if (wPos.y < item.heightRange.x || wPos.y > item.heightRange.y)
|
||||
{
|
||||
instanceCount = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (item.slopeRange.x > 0 || item.slopeRange.y < 90)
|
||||
{
|
||||
float slope = terrain.GetSlope(normalizedPos);
|
||||
//Reject if slope check fails
|
||||
if (slope < item.slopeRange.x || slope > item.slopeRange.y)
|
||||
{
|
||||
instanceCount = 0;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (item.curvatureRange.x > 0 || item.curvatureRange.y < 1f)
|
||||
{
|
||||
float curvature = terrain.SampleConvexity(normalizedPos);
|
||||
//0=concave, 0.5=flat, 1=convex
|
||||
curvature = TerrainSampler.ConvexityToCurvature(curvature);
|
||||
if (curvature < item.curvatureRange.x || curvature > item.curvatureRange.y)
|
||||
{
|
||||
instanceCount = 0;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
//Reject based on layer masks
|
||||
float spawnChance = 0f;
|
||||
if (item.layerMasks.Count == 0)
|
||||
{
|
||||
spawnChance = 100f;
|
||||
}
|
||||
else
|
||||
{
|
||||
splatmapTexelIndex = terrain.SplatmapTexelIndex(normalizedPos);
|
||||
}
|
||||
|
||||
foreach (TerrainLayerMask layer in item.layerMasks)
|
||||
{
|
||||
Texture2D splat = terrain.terrainData.GetAlphamapTexture(GetSplatmapID(layer.layerID));
|
||||
|
||||
m_splatmapColor = splat.GetPixel(splatmapTexelIndex.x, splatmapTexelIndex.y);
|
||||
|
||||
int channel = layer.layerID % 4;
|
||||
float value = m_splatmapColor[channel];
|
||||
|
||||
if (value > 0)
|
||||
{
|
||||
value = Mathf.Clamp01(value - layer.threshold);
|
||||
}
|
||||
value *= 100f;
|
||||
|
||||
spawnChance += value;
|
||||
}
|
||||
InitializeSeed(x * y + item.seed);
|
||||
if ((Random.value <= spawnChance) == false)
|
||||
{
|
||||
instanceCount = 0;
|
||||
}
|
||||
|
||||
//if (instanceCount == 1) DebugPoints.Instance.Add(wPos, true, 0f);
|
||||
item.instanceCount += instanceCount;
|
||||
|
||||
#if UNITY_2022_2_OR_NEWER
|
||||
if(terrain.terrainData.detailScatterMode == DetailScatterMode.CoverageMode) instanceCount *= 255;
|
||||
#endif
|
||||
|
||||
//Passed all conditions, spawn one instance here
|
||||
map[x, y] = instanceCount;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
terrain.terrainData.SetDetailLayer(0, 0, item.index, map);
|
||||
|
||||
#if UNITY_EDITOR
|
||||
if(showProgressBar) UnityEditor.EditorUtility.ClearProgressBar();
|
||||
#endif
|
||||
}
|
||||
|
||||
private DetailPrototype GetGrassPrototype(GrassPrefab item, Terrain terrain)
|
||||
{
|
||||
if (item.index >= terrain.terrainData.detailPrototypes.Length) return null;
|
||||
|
||||
return terrain.terrainData.detailPrototypes[item.index];
|
||||
}
|
||||
|
||||
private void UpdateGrassItem(GrassPrefab item, DetailPrototype d)
|
||||
{
|
||||
d.healthyColor = item.mainColor;
|
||||
d.dryColor = item.linkColors ? item.mainColor : item.secondaryColor;
|
||||
|
||||
d.minHeight = item.minMaxHeight.x;
|
||||
d.maxHeight = item.minMaxHeight.y;
|
||||
|
||||
d.minWidth = item.minMaxWidth.x;
|
||||
d.maxWidth = item.minMaxWidth.y;
|
||||
|
||||
#if UNITY_2021_2_OR_NEWER
|
||||
d.noiseSeed = item.seed;
|
||||
d.holeEdgePadding = item.holeEdgePadding;
|
||||
#endif
|
||||
d.noiseSpread = item.noiseSize;
|
||||
|
||||
#if UNITY_2022_2_OR_NEWER
|
||||
d.alignToGround = item.alignToGround * 0.01f;
|
||||
d.positionJitter = item.positionJitter * 0.01f;
|
||||
d.useDensityScaling = item.useDensityScaling;
|
||||
d.density = item.density;
|
||||
#endif
|
||||
|
||||
if (item.type == GrassType.Mesh)
|
||||
{
|
||||
d.renderMode = DetailRenderMode.Grass; //Actually a mesh
|
||||
d.usePrototypeMesh = true;
|
||||
#if UNITY_2021_2_OR_NEWER
|
||||
d.useInstancing = item.gpuInstancing;
|
||||
if(item.gpuInstancing) d.renderMode = DetailRenderMode.VertexLit;
|
||||
#endif
|
||||
d.prototype = item.prefab;
|
||||
d.prototypeTexture = null;
|
||||
|
||||
}
|
||||
if (item.type == GrassType.Texture && item.billboard)
|
||||
{
|
||||
#if UNITY_2021_2_OR_NEWER
|
||||
d.useInstancing = false;
|
||||
#endif
|
||||
d.renderMode = item.renderAsBillboard ? DetailRenderMode.GrassBillboard : DetailRenderMode.Grass;
|
||||
d.usePrototypeMesh = false;
|
||||
d.prototypeTexture = item.billboard;
|
||||
d.prototype = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ab89c256954e4cbc90c390356d5c5fec
|
||||
timeCreated: 1614365571
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/Runtime/VegetationSpawner.Grass.cs
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,324 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using Random = UnityEngine.Random;
|
||||
|
||||
namespace sc.terrain.vegetationspawner
|
||||
{
|
||||
public partial class VegetationSpawner
|
||||
{
|
||||
[Tooltip("Tree item will automatically respawn after changing a parameter in the inspector")]
|
||||
public bool autoRespawnTrees = true;
|
||||
|
||||
private void SpawnAllTrees(Terrain terrain = null)
|
||||
{
|
||||
if (treeTypes == null) return;
|
||||
|
||||
if (treeTypes.Count == 0) return;
|
||||
|
||||
InitializeSeed();
|
||||
|
||||
RefreshTreePrefabs();
|
||||
|
||||
int index = 0;
|
||||
foreach (TreeType item in treeTypes)
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
UnityEditor.EditorUtility.DisplayProgressBar("Vegetation Spawner", "Spawning trees...", (float)index / (float)treeTypes.Count);
|
||||
#endif
|
||||
SpawnTree(item, terrain);
|
||||
|
||||
index++;
|
||||
}
|
||||
#if UNITY_EDITOR
|
||||
UnityEditor.EditorUtility.ClearProgressBar();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
public void RefreshTreePrefabs()
|
||||
{
|
||||
List<TreePrototype> treePrototypeCollection = new List<TreePrototype>();
|
||||
|
||||
foreach (TreeType item in treeTypes)
|
||||
{
|
||||
foreach (TreePrefab p in item.prefabs)
|
||||
{
|
||||
if (p.prefab)
|
||||
{
|
||||
TreePrototype treePrototype = new TreePrototype();
|
||||
treePrototype.prefab = p.prefab;
|
||||
treePrototypeCollection.Add(treePrototype);
|
||||
p.index = treePrototypeCollection.Count - 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception($"[Vegetation Spawner] A tree item ({item.name}) has no prefab assigned to it, or it went missing. It should be corrected, or removed from the spawner.");
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach (Terrain terrain in terrains)
|
||||
{
|
||||
terrain.terrainData.treePrototypes = treePrototypeCollection.ToArray();
|
||||
|
||||
//Ensures prototypes are persistent
|
||||
terrain.terrainData.RefreshPrototypes();
|
||||
}
|
||||
}
|
||||
|
||||
public void SpawnTree(TreeType item, Terrain targetTerrain = null)
|
||||
{
|
||||
if (item.collisionCheck) RebuildCollisionCacheIfNeeded();
|
||||
|
||||
item.instanceCount = 0;
|
||||
RefreshTreePrefabs();
|
||||
|
||||
if (targetTerrain == null)
|
||||
{
|
||||
List<Terrain> targetTerrains = GetTargetTerrains();
|
||||
|
||||
showProgressBar = false;
|
||||
var progress = true;
|
||||
int counter = 0;
|
||||
|
||||
foreach (Terrain terrain in targetTerrains)
|
||||
{
|
||||
counter++;
|
||||
|
||||
#if UNITY_EDITOR
|
||||
if (autoRespawnTrees == false)
|
||||
{
|
||||
if (UnityEditor.EditorUtility.DisplayCancelableProgressBar("Vegetation Spawner", $"Spawning \"{item.name}\" on {terrain.name} ({counter}/{targetTerrains.Count})", (float)counter / (float)targetTerrains.Count))
|
||||
{
|
||||
progress = false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if(progress) SpawnTreeOnTerrain(terrain, item);
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
UnityEditor.EditorUtility.ClearProgressBar();
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
showProgressBar = true;
|
||||
SpawnTreeOnTerrain(targetTerrain, item);
|
||||
}
|
||||
|
||||
for (int i = 0; i < item.prefabs.Count; i++)
|
||||
{
|
||||
onTreeRespawn?.Invoke(item.prefabs[i]);
|
||||
}
|
||||
}
|
||||
|
||||
private void SpawnTreeOnTerrain(Terrain terrain, TreeType item)
|
||||
{
|
||||
float height, worldHeight, normalizedHeight;
|
||||
|
||||
List<TreeInstance> treeInstanceCollection = new List<TreeInstance>(terrain.terrainData.treeInstances);
|
||||
|
||||
//Clear all existing instances first, setting the tree instances is additive
|
||||
for (int i = 0; i < treeInstanceCollection.Count; i++)
|
||||
{
|
||||
foreach (TreePrefab prefab in item.prefabs)
|
||||
{
|
||||
treeInstanceCollection.RemoveAll(x => x.prototypeIndex == prefab.index);
|
||||
}
|
||||
}
|
||||
|
||||
if (item.enabled)
|
||||
{
|
||||
InitializeSeed(item.seed);
|
||||
|
||||
item.spawnPoints = PoissonDisc.GetSpawnpoints(terrain, item.distance, item.seed + seed);
|
||||
|
||||
int counter = 0;
|
||||
int spawnPointCount = item.spawnPoints.Count;
|
||||
foreach (Vector3 pos in item.spawnPoints)
|
||||
{
|
||||
//InitializeSeed(item.seed + index);
|
||||
counter++;
|
||||
|
||||
#if UNITY_EDITOR
|
||||
if (autoRespawnTrees == false && showProgressBar)
|
||||
{
|
||||
//Show progress bar every 10%
|
||||
if (spawnPointCount > 1 && counter % (spawnPointCount / 10) == 0)
|
||||
{
|
||||
UnityEditor.EditorUtility.DisplayProgressBar("Vegetation Spawner", $"Spawning \"{item.name}\" on {terrain.name} ({counter}/{spawnPointCount} spawn points)", (float)counter / (float)spawnPointCount);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
//Relative position as 0-1 value
|
||||
Vector2 normalizedPos = terrain.GetNormalizedPosition(pos);
|
||||
|
||||
InitializeSeed(item.seed + (int)pos.x * (int)pos.z);
|
||||
|
||||
//Skip if failing global probability check
|
||||
if (((Random.value * 100f) <= item.probability) == false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (item.collisionCheck)
|
||||
{
|
||||
//Check for collision
|
||||
if (InsideOccupiedCell(terrain, pos, normalizedPos))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
TreePrefab prefab = SpawnerBase.GetProbableTree(item);
|
||||
|
||||
//Failed probability checks entirely
|
||||
if (prefab == null) continue;
|
||||
|
||||
terrain.SampleHeight(normalizedPos, out height, out worldHeight, out normalizedHeight);
|
||||
|
||||
//Reject if lower than chosen water level
|
||||
if (item.rejectUnderwater && worldHeight < waterHeight) continue;
|
||||
|
||||
//Check height
|
||||
if (worldHeight < item.heightRange.x || worldHeight > item.heightRange.y)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Direction-based filter?
|
||||
Vector3 dir = RenderSettings.sun.transform.forward;
|
||||
Vector3 normal = terrain.terrainData.GetInterpolatedNormal(normalizedPos.x, normalizedPos.y);
|
||||
float aspect = Vector3.Dot(-dir, normal);
|
||||
if(aspect <= 0) continue;
|
||||
*/
|
||||
|
||||
if (item.slopeRange.x > 0 || item.slopeRange.y < 90f)
|
||||
{
|
||||
float slope = terrain.GetSlope(normalizedPos, false);
|
||||
|
||||
//Reject if slope check fails
|
||||
if (!(slope >= (item.slopeRange.x) && slope <= (item.slopeRange.y)))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (item.curvatureRange.x > 0 || item.curvatureRange.y < 1f)
|
||||
{
|
||||
float curvature = terrain.SampleConvexity(normalizedPos);
|
||||
//0=concave, 0.5=flat, 1=convex
|
||||
curvature = TerrainSampler.ConvexityToCurvature(curvature);
|
||||
if (curvature < item.curvatureRange.x || curvature > item.curvatureRange.y)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
float spawnChance = 0f;
|
||||
if (item.layerMasks.Count == 0)
|
||||
{
|
||||
spawnChance = 100f;
|
||||
}
|
||||
else
|
||||
{
|
||||
//Reject based on layer masks
|
||||
splatmapTexelIndex = terrain.SplatmapTexelIndex(normalizedPos);
|
||||
}
|
||||
|
||||
foreach (TerrainLayerMask layer in item.layerMasks)
|
||||
{
|
||||
Texture2D splat = terrain.terrainData.GetAlphamapTexture(GetSplatmapID(layer.layerID));
|
||||
|
||||
Color color = splat.GetPixel(splatmapTexelIndex.x, splatmapTexelIndex.y);
|
||||
|
||||
int channel = layer.layerID % 4;
|
||||
float value = color[channel];
|
||||
|
||||
if (value > 0)
|
||||
{
|
||||
value = Mathf.Clamp01(value - layer.threshold);
|
||||
}
|
||||
value *= 100f;
|
||||
|
||||
spawnChance += value;
|
||||
|
||||
}
|
||||
InitializeSeed((int)pos.x * (int)pos.z);
|
||||
if ((Random.value <= spawnChance) == false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
//Passed all conditions, add instance
|
||||
TreeInstance treeInstance = new TreeInstance();
|
||||
treeInstance.prototypeIndex = prefab.index;
|
||||
|
||||
//Note: Sink amount should be converted to normalized 0-1 height
|
||||
treeInstance.position = new Vector3(normalizedPos.x, normalizedHeight - (item.sinkAmount / (terrain.terrainData.size.y + 0.01f)), normalizedPos.y);
|
||||
treeInstance.rotation = Random.Range(0f, 359f) * Mathf.Deg2Rad;
|
||||
|
||||
float scale = Random.Range(item.scaleRange.x, item.scaleRange.y);
|
||||
treeInstance.heightScale = scale;
|
||||
treeInstance.widthScale = scale;
|
||||
|
||||
treeInstance.color = Color.white;
|
||||
treeInstance.lightmapColor = Color.white;
|
||||
|
||||
treeInstanceCollection.Add(treeInstance);
|
||||
|
||||
item.instanceCount++;
|
||||
}
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
if(showProgressBar) UnityEditor.EditorUtility.ClearProgressBar();
|
||||
#endif
|
||||
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
terrain.terrainData.SetTreeInstances(treeInstanceCollection.ToArray(), false);
|
||||
#else
|
||||
terrain.terrainData.treeInstances = treeInstanceCollection.ToArray();
|
||||
#endif
|
||||
}
|
||||
|
||||
private TreePrototype GetTreePrototype(TreePrefab item, Terrain terrain)
|
||||
{
|
||||
return terrain.terrainData.treePrototypes[item.index];
|
||||
}
|
||||
|
||||
public void UpdateTreeItem(TreeType item)
|
||||
{
|
||||
foreach (Terrain terrain in terrains)
|
||||
{
|
||||
foreach (TreePrefab p in item.prefabs)
|
||||
{
|
||||
//Not yet added
|
||||
if (p.index >= terrain.terrainData.treePrototypes.Length) continue;
|
||||
|
||||
if (p.prefab == null) continue;
|
||||
|
||||
if (terrain.terrainData.treePrototypes[p.index] == null) continue;
|
||||
|
||||
//Note only works when creating these copies :/
|
||||
TreePrototype[] treePrototypes = terrain.terrainData.treePrototypes;
|
||||
|
||||
TreePrototype t = new TreePrototype();
|
||||
|
||||
t.prefab = p.prefab;
|
||||
|
||||
treePrototypes[p.index] = t;
|
||||
terrain.terrainData.treePrototypes = treePrototypes;
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
UnityEditor.EditorUtility.SetDirty(terrain);
|
||||
UnityEditor.EditorUtility.SetDirty(terrain.terrainData);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 726cad149c3b486a884b28ec61ec3c92
|
||||
timeCreated: 1614365486
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/Runtime/VegetationSpawner.Trees.cs
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,177 @@
|
|||
// Vegetation Spawner by Staggart Creations http://staggart.xyz
|
||||
// Copyright protected under Unity Asset Store EULA
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace sc.terrain.vegetationspawner
|
||||
{
|
||||
[ExecuteInEditMode]
|
||||
[AddComponentMenu("Vegetation Spawner")]
|
||||
public partial class VegetationSpawner : SpawnerBase
|
||||
{
|
||||
public const string Version = "1.1.0";
|
||||
public static VegetationSpawner Current;
|
||||
|
||||
//Cannot be serialized, but is rebuilt when required
|
||||
public Dictionary<Terrain, Cell[,]> terrainCells = new Dictionary<Terrain, Cell[,]>();
|
||||
//This is used for the height range slider
|
||||
public Vector2 terrainMinMaxHeight = new Vector2(-100, 2000f);
|
||||
public int detailResolution = 256;
|
||||
public int detailResolutionIndex;
|
||||
public int grassPatchSize = 128;
|
||||
public int grassPatchSizeIndex = 4;
|
||||
|
||||
[Tooltip("Assign any collider objects that should temporarily be enabled when collision cache is rebuilt")]
|
||||
public Collider[] tempColliders;
|
||||
|
||||
[Tooltip("Determines the height of a virtual water level. If a vegetation item has \"Remove underwater\" enabled, it will not spawn under this height")]
|
||||
public float waterHeight;
|
||||
|
||||
public delegate void OnTreeRespawn(TreePrefab prefab);
|
||||
/// <summary>
|
||||
/// Triggers whenever a tree species is respawned. Passes the related SpawnerBase.TreePrefab as an argument.
|
||||
/// </summary>
|
||||
public static event OnTreeRespawn onTreeRespawn;
|
||||
|
||||
public delegate void OnGrassRespawn(GrassPrefab prefab);
|
||||
/// <summary>
|
||||
/// Triggers whenever a grass item is respawned. Passes the related SpawnerBase.GrassPrefab as an argument.
|
||||
/// </summary>
|
||||
public static event OnGrassRespawn onGrassRespawn;
|
||||
|
||||
private static Vector2Int splatmapTexelIndex;
|
||||
private static Color m_splatmapColor;
|
||||
|
||||
#pragma warning disable CS0414 //Assigned, but never used
|
||||
private static bool showProgressBar;
|
||||
#pragma warning restore CS0414
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
Current = this;
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
Current = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Respawns all vegetation on the assigned terrains
|
||||
/// </summary>
|
||||
/// <param name="grass">Enable respawning of grass</param>
|
||||
/// <param name="trees">Enable respawning of trees</param>
|
||||
public void Respawn(bool grass = true, bool trees = true)
|
||||
{
|
||||
if (terrains == null) return;
|
||||
|
||||
if(grass) SpawnAllGrass();
|
||||
if(trees) SpawnAllTrees();
|
||||
|
||||
foreach (Terrain terrain in terrains)
|
||||
{
|
||||
if (!terrain) continue;
|
||||
|
||||
terrain.Flush();
|
||||
|
||||
#if UNITY_EDITOR
|
||||
UnityEditor.EditorUtility.SetDirty(terrain.terrainData);
|
||||
UnityEditor.EditorUtility.SetDirty(terrain);
|
||||
UnityEditor.AssetDatabase.SaveAssets();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Respawns all vegetation on a specific terrain
|
||||
/// </summary>
|
||||
/// <param name="grass">Enable respawning of grass</param>
|
||||
/// <param name="trees">Enable respawning of trees</param>
|
||||
public void RespawnTerrain(Terrain terrain, bool grass = true, bool trees = true)
|
||||
{
|
||||
if (grass) SpawnAllGrass(terrain);
|
||||
if (trees) SpawnAllTrees(terrain);
|
||||
}
|
||||
|
||||
public void RecalculateTerrainMinMax()
|
||||
{
|
||||
//Calculate minimum/maximum height, used for the height range slider
|
||||
terrainMinMaxHeight = new Vector2(Mathf.NegativeInfinity, Mathf.Infinity);
|
||||
for (int i = 0; i < terrains.Count; i++)
|
||||
{
|
||||
terrainMinMaxHeight.x = Mathf.Max(terrainMinMaxHeight.x, terrains[i].GetPosition().y + terrains[i].terrainData.bounds.min.y);
|
||||
terrainMinMaxHeight.y = Mathf.Min(terrainMinMaxHeight.y, terrains[i].GetPosition().y + terrains[i].terrainData.bounds.size.y);
|
||||
}
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
private void OnDrawGizmos()
|
||||
{
|
||||
/*
|
||||
foreach (Terrain terrain in terrains)
|
||||
{
|
||||
int cellSize = Mathf.CeilToInt(terrains[0].terrainData.size.x / detailResolution);
|
||||
for (int x = 0; x < detailResolution; x++)
|
||||
{
|
||||
for (int y = 0; y < detailResolution; y++)
|
||||
{
|
||||
Vector3 cellPos = new Vector3((x * cellSize) + (cellSize / 2), 0f, (y * cellSize) + (cellSize / 2));
|
||||
|
||||
Vector2 normalizedPos = terrain.GetNormalizedPosition(cellPos);
|
||||
float worldHeight = 0f;
|
||||
terrain.SampleHeight(normalizedPos, out _, out worldHeight, out _);
|
||||
|
||||
cellPos.y = worldHeight;
|
||||
|
||||
if ((UnityEditor.SceneView.lastActiveSceneView.camera.transform.position - cellPos).magnitude > 25f) continue;
|
||||
|
||||
UnityEditor.Handles.DrawWireCube(cellPos, new Vector3(cellSize, 0f, cellSize));
|
||||
//Gizmos.DrawWireCube();
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
if (VisualizeCells)
|
||||
{
|
||||
if (terrainCells == null) return;
|
||||
|
||||
foreach (KeyValuePair<Terrain, Cell[,]> item in terrainCells)
|
||||
{
|
||||
foreach (Cell cell in item.Value)
|
||||
{
|
||||
if ((UnityEditor.SceneView.lastActiveSceneView.camera.transform.position - cell.bounds.center).magnitude > 150f) continue;
|
||||
|
||||
foreach (Cell subCell in cell.subCells)
|
||||
{
|
||||
if (subCell == null) continue;
|
||||
Gizmos.color = new Color(1f, 0.05f, 0.05f, 1f);
|
||||
Gizmos.DrawWireCube(new Vector3(subCell.bounds.center.x, subCell.bounds.center.y, subCell.bounds.center.z),
|
||||
new Vector3(subCell.bounds.size.x, subCell.bounds.size.y, subCell.bounds.size.z));
|
||||
}
|
||||
|
||||
Gizmos.color = new Color(0.66f, 0.66f, 1f, 0.25f);
|
||||
Gizmos.DrawWireCube(
|
||||
new Vector3(cell.bounds.center.x, cell.bounds.center.y, cell.bounds.center.z),
|
||||
new Vector3(cell.bounds.size.x, cell.bounds.size.y, cell.bounds.size.z)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (VisualizeWaterlevel)
|
||||
{
|
||||
Gizmos.color = new Color(0f, 0.8f, 1f, 0.75f);
|
||||
|
||||
var scale = UnityEditor.SceneView.lastActiveSceneView.camera.farClipPlane;
|
||||
Vector3 center = UnityEditor.SceneView.lastActiveSceneView.camera.transform.position;
|
||||
center.y = waterHeight;
|
||||
Gizmos.DrawCube(center, new Vector3(scale, 0f, scale) );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1f710250abab6f24a954bdf3c3c1ac64
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {fileID: -6339206214482627575, guid: 0000000000000000d000000000000000, type: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/Runtime/VegetationSpawner.cs
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"name": "sc.vegetationspawner.runtime"
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
fileFormatVersion: 2
|
||||
guid: fe939d39c53623d45a1c72d470359c7f
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/Runtime/sc.vegetationspawner.runtime.asmdef
|
||||
uploadId: 712351
|
||||
8
unity_prj/letters/Assets/VegetationSpawner/_Demo.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 872410051b7c152459d9c340e5e14a61
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 722b0e41fac701548a25da010029691c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,155 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: DemoBroadLeaf_Branch
|
||||
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords:
|
||||
- _ALPHATEST_ON
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 1
|
||||
m_DoubleSidedGI: 1
|
||||
m_CustomRenderQueue: 2450
|
||||
stringTagMap:
|
||||
RenderType: TransparentCutout
|
||||
disabledShaderPasses:
|
||||
- MOTIONVECTORS
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BaseMap:
|
||||
m_Texture: {fileID: 2800000, guid: 3f9fbacafe44d184d9f238ab808b8029, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: 3f9fbacafe44d184d9f238ab808b8029, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SpecGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_Lightmaps:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_LightmapsInd:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_ShadowMasks:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _AddPrecomputedVelocity: 0
|
||||
- _AlphaClip: 1
|
||||
- _AlphaToMask: 1
|
||||
- _Blend: 0
|
||||
- _BlendModePreserveSpecular: 1
|
||||
- _BlendOp: 0
|
||||
- _BumpScale: 1
|
||||
- _CameraFadingEnabled: 0
|
||||
- _CameraFarFadeDistance: 2
|
||||
- _CameraNearFadeDistance: 1
|
||||
- _ClearCoatMask: 0
|
||||
- _ClearCoatSmoothness: 0
|
||||
- _Cull: 0
|
||||
- _Cutoff: 0.5
|
||||
- _DetailAlbedoMapScale: 1
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DistortionBlend: 0.5
|
||||
- _DistortionEnabled: 0
|
||||
- _DistortionStrength: 1
|
||||
- _DistortionStrengthScaled: 0
|
||||
- _DstBlend: 0
|
||||
- _DstBlendAlpha: 0
|
||||
- _EmissionEnabled: 0
|
||||
- _EnvironmentReflections: 1
|
||||
- _FlipbookMode: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 1
|
||||
- _LightingEnabled: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 1
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _QueueOffset: 0
|
||||
- _ReceiveShadows: 1
|
||||
- _Smoothness: 0
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SoftParticlesEnabled: 0
|
||||
- _SoftParticlesFarFadeDistance: 1
|
||||
- _SoftParticlesNearFadeDistance: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _SrcBlendAlpha: 1
|
||||
- _Surface: 0
|
||||
- _UVSec: 0
|
||||
- _WorkflowMode: 1
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
|
||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
m_AllowLocking: 1
|
||||
--- !u!114 &6486238535625996592
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 11
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 10
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 197b15a43761a4a43b56f9ddf5abb026
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/Materials/DemoBroadLeaf_Branch.mat
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,161 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &-1875343443392653220
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 11
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 10
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: DemoSpruce_Branch
|
||||
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords:
|
||||
- _ALPHATEST_ON
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 1
|
||||
m_DoubleSidedGI: 1
|
||||
m_CustomRenderQueue: 2450
|
||||
stringTagMap:
|
||||
RenderType: TransparentCutout
|
||||
disabledShaderPasses:
|
||||
- MOTIONVECTORS
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BaseMap:
|
||||
m_Texture: {fileID: 2800000, guid: 874065534dcebe24784b930da96c7266, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: 874065534dcebe24784b930da96c7266, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SpecGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_Lightmaps:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_LightmapsInd:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_ShadowMasks:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _AddPrecomputedVelocity: 0
|
||||
- _AlphaClip: 1
|
||||
- _AlphaToMask: 1
|
||||
- _Blend: 0
|
||||
- _BlendModePreserveSpecular: 1
|
||||
- _BlendOp: 0
|
||||
- _BumpScale: 1
|
||||
- _CameraFadingEnabled: 0
|
||||
- _CameraFarFadeDistance: 2
|
||||
- _CameraNearFadeDistance: 1
|
||||
- _ClearCoatMask: 0
|
||||
- _ClearCoatSmoothness: 0
|
||||
- _Cull: 0
|
||||
- _Cutoff: 0.5
|
||||
- _DetailAlbedoMapScale: 1
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DistortionBlend: 0.5
|
||||
- _DistortionEnabled: 0
|
||||
- _DistortionStrength: 1
|
||||
- _DistortionStrengthScaled: 0
|
||||
- _DstBlend: 0
|
||||
- _DstBlendAlpha: 0
|
||||
- _EmissionEnabled: 0
|
||||
- _EnvironmentReflections: 1
|
||||
- _FlipbookMode: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 1
|
||||
- _LightingEnabled: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 1
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _QueueOffset: 0
|
||||
- _ReceiveShadows: 1
|
||||
- _Smoothness: 0
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SoftParticlesEnabled: 0
|
||||
- _SoftParticlesFarFadeDistance: 1
|
||||
- _SoftParticlesNearFadeDistance: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _SrcBlendAlpha: 1
|
||||
- _Surface: 0
|
||||
- _UVSec: 0
|
||||
- _WindQuality: 0
|
||||
- _WorkflowMode: 1
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _HueVariation: {r: 1, g: 0.5, b: 0, a: 0.1}
|
||||
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
|
||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
m_AllowLocking: 1
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e25d15c9ae4458c48a1f64ec01011868
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/Materials/DemoSpruce_Branch.mat
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,166 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: DemoTerrain
|
||||
m_Shader: {fileID: 4800000, guid: 69c1f799e772cb6438f56c23efccb782, type: 3}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Control:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Mask0:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Mask1:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Mask2:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Mask3:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Normal0:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Normal1:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Normal2:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Normal3:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Splat0:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Splat1:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Splat2:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Splat3:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _TerrainHolesTexture:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _EnableHeightBlend: 0
|
||||
- _EnableInstancedPerPixelNormal: 1
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.5
|
||||
- _GlossyReflections: 1
|
||||
- _HeightTransition: 0
|
||||
- _Metallic: 0
|
||||
- _Metallic0: 0
|
||||
- _Metallic1: 0
|
||||
- _Metallic2: 0
|
||||
- _Metallic3: 0
|
||||
- _Mode: 0
|
||||
- _NumLayersCount: 1
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _Smoothness0: 0.5
|
||||
- _Smoothness1: 0.5
|
||||
- _Smoothness2: 0.5
|
||||
- _Smoothness3: 0.5
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
m_AllowLocking: 1
|
||||
--- !u!114 &5448174154556103806
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 11
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 10
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b66ad04a073fa4343afd378a5e36ca4e
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/Materials/DemoTerrain.mat
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,155 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: DemoTree_Trunk
|
||||
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords:
|
||||
- _SPECULARHIGHLIGHTS_OFF
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 1
|
||||
m_DoubleSidedGI: 1
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap:
|
||||
RenderType: Opaque
|
||||
disabledShaderPasses:
|
||||
- MOTIONVECTORS
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BaseMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SpecGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_Lightmaps:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_LightmapsInd:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_ShadowMasks:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _AddPrecomputedVelocity: 0
|
||||
- _AlphaClip: 0
|
||||
- _AlphaToMask: 0
|
||||
- _Blend: 0
|
||||
- _BlendModePreserveSpecular: 1
|
||||
- _BlendOp: 0
|
||||
- _BumpScale: 1
|
||||
- _CameraFadingEnabled: 0
|
||||
- _CameraFarFadeDistance: 2
|
||||
- _CameraNearFadeDistance: 1
|
||||
- _ClearCoatMask: 0
|
||||
- _ClearCoatSmoothness: 0
|
||||
- _Cull: 0
|
||||
- _Cutoff: 0.5
|
||||
- _DetailAlbedoMapScale: 1
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DistortionBlend: 0.5
|
||||
- _DistortionEnabled: 0
|
||||
- _DistortionStrength: 1
|
||||
- _DistortionStrengthScaled: 0
|
||||
- _DstBlend: 0
|
||||
- _DstBlendAlpha: 0
|
||||
- _EmissionEnabled: 0
|
||||
- _EnvironmentReflections: 1
|
||||
- _FlipbookMode: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 1
|
||||
- _LightingEnabled: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _QueueOffset: 0
|
||||
- _ReceiveShadows: 1
|
||||
- _Smoothness: 0
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SoftParticlesEnabled: 0
|
||||
- _SoftParticlesFarFadeDistance: 1
|
||||
- _SoftParticlesNearFadeDistance: 0
|
||||
- _SpecularHighlights: 0
|
||||
- _SrcBlend: 1
|
||||
- _SrcBlendAlpha: 1
|
||||
- _Surface: 0
|
||||
- _UVSec: 0
|
||||
- _WorkflowMode: 1
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _BaseColor: {r: 0.4823529, g: 0.41106883, b: 0.35935292, a: 1}
|
||||
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
|
||||
- _Color: {r: 0.4823529, g: 0.4110688, b: 0.3593529, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
|
||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
m_AllowLocking: 1
|
||||
--- !u!114 &7917283739618537486
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 11
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 10
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 75eb29d9944958b49925ea862d855938
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/Materials/DemoTree_Trunk.mat
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ec04eb3129a1a474f852d1a97a6a72df
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
After Width: | Height: | Size: 189 KiB |
|
|
@ -0,0 +1,123 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a45825649470a7b45a56ecd6a9fdae69
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
applyGammaDecoding: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/Materials/Textures/Bush.png
|
||||
uploadId: 712351
|
||||
|
After Width: | Height: | Size: 370 KiB |
|
|
@ -0,0 +1,123 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 874065534dcebe24784b930da96c7266
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
applyGammaDecoding: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/Materials/Textures/DemoSpruceBranch.png
|
||||
uploadId: 712351
|
||||
|
After Width: | Height: | Size: 292 KiB |
|
|
@ -0,0 +1,123 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3f9fbacafe44d184d9f238ab808b8029
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
applyGammaDecoding: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/Materials/Textures/Demo_TreeBranch.png
|
||||
uploadId: 712351
|
||||
|
After Width: | Height: | Size: 152 KiB |
|
|
@ -0,0 +1,142 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 409c39177d5ac5545bede68eed1c290b
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMasterTextureLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
cookieLightType: 1
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/Materials/Textures/GrassField.png
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 148a5cbb96e005f44bc57a977d44095a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,106 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7496a10b93b5fc841a2ab029c5b4fca0
|
||||
ModelImporter:
|
||||
serializedVersion: 23
|
||||
fileIDToRecycleName:
|
||||
100000: //RootNode
|
||||
400000: //RootNode
|
||||
2100000: SGS_Tree_Branch
|
||||
2100002: Default
|
||||
2300000: //RootNode
|
||||
3300000: //RootNode
|
||||
4300000: Demo_Broadleaf
|
||||
9500000: //RootNode
|
||||
externalObjects: {}
|
||||
materials:
|
||||
importMaterials: 0
|
||||
materialName: 0
|
||||
materialSearch: 1
|
||||
materialLocation: 1
|
||||
animations:
|
||||
legacyGenerateAnimations: 4
|
||||
bakeSimulation: 0
|
||||
resampleCurves: 1
|
||||
optimizeGameObjects: 0
|
||||
motionNodeName:
|
||||
rigImportErrors:
|
||||
rigImportWarnings:
|
||||
animationImportErrors:
|
||||
animationImportWarnings:
|
||||
animationRetargetingWarnings:
|
||||
animationDoRetargetingWarnings: 0
|
||||
importAnimatedCustomProperties: 0
|
||||
importConstraints: 0
|
||||
animationCompression: 1
|
||||
animationRotationError: 0.5
|
||||
animationPositionError: 0.5
|
||||
animationScaleError: 0.5
|
||||
animationWrapMode: 0
|
||||
extraExposedTransformPaths: []
|
||||
extraUserProperties: []
|
||||
clipAnimations: []
|
||||
isReadable: 0
|
||||
meshes:
|
||||
lODScreenPercentages: []
|
||||
globalScale: 1
|
||||
meshCompression: 0
|
||||
addColliders: 0
|
||||
useSRGBMaterialColor: 1
|
||||
importVisibility: 1
|
||||
importBlendShapes: 1
|
||||
importCameras: 1
|
||||
importLights: 1
|
||||
swapUVChannels: 0
|
||||
generateSecondaryUV: 0
|
||||
useFileUnits: 1
|
||||
optimizeMeshForGPU: 1
|
||||
keepQuads: 0
|
||||
weldVertices: 1
|
||||
preserveHierarchy: 0
|
||||
indexFormat: 0
|
||||
secondaryUVAngleDistortion: 8
|
||||
secondaryUVAreaDistortion: 15.000001
|
||||
secondaryUVHardAngle: 88
|
||||
secondaryUVPackMargin: 4
|
||||
useFileScale: 1
|
||||
previousCalculatedGlobalScale: 1
|
||||
hasPreviousCalculatedGlobalScale: 1
|
||||
tangentSpace:
|
||||
normalSmoothAngle: 60
|
||||
normalImportMode: 0
|
||||
tangentImportMode: 3
|
||||
normalCalculationMode: 4
|
||||
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
||||
blendShapeNormalImportMode: 1
|
||||
normalSmoothingSource: 0
|
||||
importAnimation: 0
|
||||
copyAvatar: 0
|
||||
humanDescription:
|
||||
serializedVersion: 2
|
||||
human: []
|
||||
skeleton: []
|
||||
armTwist: 0.5
|
||||
foreArmTwist: 0.5
|
||||
upperLegTwist: 0.5
|
||||
legTwist: 0.5
|
||||
armStretch: 0.05
|
||||
legStretch: 0.05
|
||||
feetSpacing: 0
|
||||
rootMotionBoneName:
|
||||
hasTranslationDoF: 0
|
||||
hasExtraRoot: 0
|
||||
skeletonHasParents: 1
|
||||
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||
animationType: 0
|
||||
humanoidOversampling: 1
|
||||
additionalBone: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/Models/Demo_Broadleaf.fbx
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,106 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4e072defff86b234ab3bc6bb20b08b46
|
||||
ModelImporter:
|
||||
serializedVersion: 23
|
||||
fileIDToRecycleName:
|
||||
100000: //RootNode
|
||||
400000: //RootNode
|
||||
2100000: SGS_SpruceBranch
|
||||
2100002: SWS_SpruceBark_Diffuse
|
||||
2300000: //RootNode
|
||||
3300000: //RootNode
|
||||
4300000: Demo_Spruce
|
||||
9500000: //RootNode
|
||||
externalObjects: {}
|
||||
materials:
|
||||
importMaterials: 0
|
||||
materialName: 0
|
||||
materialSearch: 1
|
||||
materialLocation: 1
|
||||
animations:
|
||||
legacyGenerateAnimations: 4
|
||||
bakeSimulation: 0
|
||||
resampleCurves: 1
|
||||
optimizeGameObjects: 0
|
||||
motionNodeName:
|
||||
rigImportErrors:
|
||||
rigImportWarnings:
|
||||
animationImportErrors:
|
||||
animationImportWarnings:
|
||||
animationRetargetingWarnings:
|
||||
animationDoRetargetingWarnings: 0
|
||||
importAnimatedCustomProperties: 0
|
||||
importConstraints: 0
|
||||
animationCompression: 1
|
||||
animationRotationError: 0.5
|
||||
animationPositionError: 0.5
|
||||
animationScaleError: 0.5
|
||||
animationWrapMode: 0
|
||||
extraExposedTransformPaths: []
|
||||
extraUserProperties: []
|
||||
clipAnimations: []
|
||||
isReadable: 0
|
||||
meshes:
|
||||
lODScreenPercentages: []
|
||||
globalScale: 1
|
||||
meshCompression: 0
|
||||
addColliders: 0
|
||||
useSRGBMaterialColor: 1
|
||||
importVisibility: 1
|
||||
importBlendShapes: 1
|
||||
importCameras: 1
|
||||
importLights: 1
|
||||
swapUVChannels: 0
|
||||
generateSecondaryUV: 0
|
||||
useFileUnits: 1
|
||||
optimizeMeshForGPU: 1
|
||||
keepQuads: 0
|
||||
weldVertices: 1
|
||||
preserveHierarchy: 0
|
||||
indexFormat: 0
|
||||
secondaryUVAngleDistortion: 8
|
||||
secondaryUVAreaDistortion: 15.000001
|
||||
secondaryUVHardAngle: 88
|
||||
secondaryUVPackMargin: 4
|
||||
useFileScale: 1
|
||||
previousCalculatedGlobalScale: 1
|
||||
hasPreviousCalculatedGlobalScale: 1
|
||||
tangentSpace:
|
||||
normalSmoothAngle: 60
|
||||
normalImportMode: 0
|
||||
tangentImportMode: 3
|
||||
normalCalculationMode: 4
|
||||
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
||||
blendShapeNormalImportMode: 1
|
||||
normalSmoothingSource: 0
|
||||
importAnimation: 0
|
||||
copyAvatar: 0
|
||||
humanDescription:
|
||||
serializedVersion: 2
|
||||
human: []
|
||||
skeleton: []
|
||||
armTwist: 0.5
|
||||
foreArmTwist: 0.5
|
||||
upperLegTwist: 0.5
|
||||
legTwist: 0.5
|
||||
armStretch: 0.05
|
||||
legStretch: 0.05
|
||||
feetSpacing: 0
|
||||
rootMotionBoneName:
|
||||
hasTranslationDoF: 0
|
||||
hasExtraRoot: 0
|
||||
skeletonHasParents: 1
|
||||
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||
animationType: 0
|
||||
humanoidOversampling: 1
|
||||
additionalBone: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/Models/Demo_Spruce.fbx
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 465c3351fe1765b48ac50dd3e1b18b13
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,148 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &3419883363128097502
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2611539540731813988}
|
||||
- component: {fileID: 8177757628385059802}
|
||||
- component: {fileID: 8434828289214908847}
|
||||
m_Layer: 0
|
||||
m_Name: DemoBroadleaf
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 16
|
||||
m_IsActive: 1
|
||||
--- !u!4 &2611539540731813988
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3419883363128097502}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 5516303386431747772}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!205 &8177757628385059802
|
||||
LODGroup:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3419883363128097502}
|
||||
serializedVersion: 2
|
||||
m_LocalReferencePoint: {x: 0.4692316, y: 14.279694, z: -0.40315628}
|
||||
m_Size: 29.099388
|
||||
m_FadeMode: 0
|
||||
m_AnimateCrossFading: 0
|
||||
m_LastLODIsBillboard: 0
|
||||
m_LODs:
|
||||
- screenRelativeHeight: 0.12470247
|
||||
fadeTransitionWidth: 0
|
||||
renderers:
|
||||
- renderer: {fileID: 6685299427102658003}
|
||||
m_Enabled: 1
|
||||
--- !u!136 &8434828289214908847
|
||||
CapsuleCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3419883363128097502}
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_Enabled: 1
|
||||
m_Radius: 1
|
||||
m_Height: 27.454563
|
||||
m_Direction: 1
|
||||
m_Center: {x: 0.18, y: 12.51, z: 0}
|
||||
--- !u!1 &5171830123791133702
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5516303386431747772}
|
||||
- component: {fileID: 8872657657409009945}
|
||||
- component: {fileID: 6685299427102658003}
|
||||
m_Layer: 0
|
||||
m_Name: DemoBroadleaf_LOD0
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 16
|
||||
m_IsActive: 1
|
||||
--- !u!4 &5516303386431747772
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5171830123791133702}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 2611539540731813988}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!33 &8872657657409009945
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5171830123791133702}
|
||||
m_Mesh: {fileID: 4300000, guid: 7496a10b93b5fc841a2ab029c5b4fca0, type: 3}
|
||||
--- !u!23 &6685299427102658003
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5171830123791133702}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 2
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 197b15a43761a4a43b56f9ddf5abb026, type: 2}
|
||||
- {fileID: 2100000, guid: 75eb29d9944958b49925ea862d855938, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ee761a3475b476040a2a6844b77eb15a
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/Prefabs/DemoBroadleaf.prefab
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,148 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &5307746213659329790
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4819757203154443844}
|
||||
- component: {fileID: 8452390319951548897}
|
||||
- component: {fileID: 5956040741380252971}
|
||||
m_Layer: 0
|
||||
m_Name: Demo_Spruce_LOD0
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 16
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4819757203154443844
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5307746213659329790}
|
||||
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: -0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4465860574682440742}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!33 &8452390319951548897
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5307746213659329790}
|
||||
m_Mesh: {fileID: 4300000, guid: 4e072defff86b234ab3bc6bb20b08b46, type: 3}
|
||||
--- !u!23 &5956040741380252971
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5307746213659329790}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 2
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: e25d15c9ae4458c48a1f64ec01011868, type: 2}
|
||||
- {fileID: 2100000, guid: 75eb29d9944958b49925ea862d855938, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!1 &7488343770391138834
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4465860574682440742}
|
||||
- component: {fileID: 3065300696868997439}
|
||||
- component: {fileID: 3275975674698241279}
|
||||
m_Layer: 0
|
||||
m_Name: DemoSpruce
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 16
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4465860574682440742
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7488343770391138834}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 4819757203154443844}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!205 &3065300696868997439
|
||||
LODGroup:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7488343770391138834}
|
||||
serializedVersion: 2
|
||||
m_LocalReferencePoint: {x: -0.15721607, y: 23.265001, z: -0.0014667511}
|
||||
m_Size: 46.530003
|
||||
m_FadeMode: 0
|
||||
m_AnimateCrossFading: 0
|
||||
m_LastLODIsBillboard: 0
|
||||
m_LODs:
|
||||
- screenRelativeHeight: 0.09400899
|
||||
fadeTransitionWidth: 0
|
||||
renderers:
|
||||
- renderer: {fileID: 5956040741380252971}
|
||||
m_Enabled: 1
|
||||
--- !u!136 &3275975674698241279
|
||||
CapsuleCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7488343770391138834}
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_Enabled: 1
|
||||
m_Radius: 0.5
|
||||
m_Height: 46.725887
|
||||
m_Direction: 1
|
||||
m_Center: {x: 0, y: 22.862944, z: 0}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d269f456157d06948a7ff3854fe78119
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/Prefabs/DemoSpruce.prefab
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ec5aa76b081a18747835496e1d535b58
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 255e511019ccc0c469dc501da802542c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1953259897 &8574412962073106934
|
||||
TerrainLayer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: DemoCliff
|
||||
m_DiffuseTexture: {fileID: 2800000, guid: 7ed17950679a36d46826bf1baa38b271, type: 3}
|
||||
m_NormalMapTexture: {fileID: 0}
|
||||
m_MaskMapTexture: {fileID: 0}
|
||||
m_TileSize: {x: 10, y: 10}
|
||||
m_TileOffset: {x: 0, y: 0}
|
||||
m_Specular: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_Metallic: 0
|
||||
m_Smoothness: 0
|
||||
m_NormalScale: 1
|
||||
m_DiffuseRemapMin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_DiffuseRemapMax: {x: 1, y: 1, z: 1, w: 1}
|
||||
m_MaskMapRemapMin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_MaskMapRemapMax: {x: 1, y: 1, z: 1, w: 1}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e0d9469a58c161248b9ac0a71f7750ba
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/Terrain/Layers/DemoCliff.terrainlayer
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1953259897 &8574412962073106934
|
||||
TerrainLayer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: DemoDirt
|
||||
m_DiffuseTexture: {fileID: 2800000, guid: 79568fd976a763b4a8c75d8c555122b8, type: 3}
|
||||
m_NormalMapTexture: {fileID: 0}
|
||||
m_MaskMapTexture: {fileID: 0}
|
||||
m_TileSize: {x: 5, y: 5}
|
||||
m_TileOffset: {x: 0, y: 0}
|
||||
m_Specular: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_Metallic: 0
|
||||
m_Smoothness: 0
|
||||
m_NormalScale: 1
|
||||
m_DiffuseRemapMin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_DiffuseRemapMax: {x: 1, y: 1, z: 1, w: 1}
|
||||
m_MaskMapRemapMin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_MaskMapRemapMax: {x: 1, y: 1, z: 1, w: 1}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 82aea1bf4675be54487e9d7583efd53c
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/Terrain/Layers/DemoDirt.terrainlayer
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1953259897 &8574412962073106934
|
||||
TerrainLayer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: DemoGrass
|
||||
m_DiffuseTexture: {fileID: 2800000, guid: f00f0bf16d663754e92bc8e8c50cdd60, type: 3}
|
||||
m_NormalMapTexture: {fileID: 0}
|
||||
m_MaskMapTexture: {fileID: 0}
|
||||
m_TileSize: {x: 2, y: 2}
|
||||
m_TileOffset: {x: 0, y: 0}
|
||||
m_Specular: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_Metallic: 0
|
||||
m_Smoothness: 0
|
||||
m_NormalScale: 1
|
||||
m_DiffuseRemapMin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_DiffuseRemapMax: {x: 1, y: 1, z: 1, w: 1}
|
||||
m_MaskMapRemapMin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_MaskMapRemapMax: {x: 1, y: 1, z: 1, w: 1}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a81050ac684e8ef438628a0ed178d144
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/Terrain/Layers/DemoGrass.terrainlayer
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 17c8eb6bd61fd8d48a9ba0303a6a20d4
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/Terrain/TerrainChunk_0.asset
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1ce2c734c7d439241b057a9dfc505b12
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
After Width: | Height: | Size: 58 KiB |
|
|
@ -0,0 +1,99 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 79568fd976a763b4a8c75d8c555122b8
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
applyGammaDecoding: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/Terrain/Textures/TerrainDirt.png
|
||||
uploadId: 712351
|
||||
|
After Width: | Height: | Size: 81 KiB |
|
|
@ -0,0 +1,99 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f00f0bf16d663754e92bc8e8c50cdd60
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
applyGammaDecoding: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/Terrain/Textures/TerrainGrass.png
|
||||
uploadId: 712351
|
||||
|
After Width: | Height: | Size: 54 KiB |
|
|
@ -0,0 +1,99 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7ed17950679a36d46826bf1baa38b271
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
applyGammaDecoding: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/Terrain/Textures/TerrainRock.png
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,665 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
OcclusionCullingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: 0.25
|
||||
backfaceThreshold: 100
|
||||
m_SceneGUID: 00000000000000000000000000000000
|
||||
m_OcclusionCullingData: {fileID: 0}
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 10
|
||||
m_Fog: 1
|
||||
m_FogColor: {r: 0.7803922, g: 0.91372555, b: 1, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: 0.0005
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: 0.46574, g: 0.5268645, b: 0.638, a: 1}
|
||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 3
|
||||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
||||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_HaloStrength: 0.5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 13
|
||||
m_BakeOnSceneLoad: 0
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 0
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 12
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_AtlasSize: 1024
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 1
|
||||
m_CompAOExponentDirect: 0
|
||||
m_ExtractAmbientOcclusion: 0
|
||||
m_Padding: 2
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_LightmapsBakeMode: 1
|
||||
m_TextureCompression: 1
|
||||
m_ReflectionCompression: 2
|
||||
m_MixedBakeMode: 2
|
||||
m_BakeBackend: 1
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVRBounces: 2
|
||||
m_PVREnvironmentSampleCount: 512
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_PVRFilteringMode: 2
|
||||
m_PVRDenoiserTypeDirect: 0
|
||||
m_PVRDenoiserTypeIndirect: 0
|
||||
m_PVRDenoiserTypeAO: 0
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVREnvironmentMIS: 0
|
||||
m_PVRCulling: 1
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_ExportTrainingData: 0
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_LightingDataAsset: {fileID: 0}
|
||||
m_LightingSettings: {fileID: 4890085278179872738, guid: 27a173cf57898a74284f9523236260a9, type: 2}
|
||||
--- !u!196 &4
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 3
|
||||
agentTypeID: 0
|
||||
agentRadius: 0.5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: 0.4
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
minRegionArea: 2
|
||||
manualCellSize: 0
|
||||
cellSize: 0.16666667
|
||||
manualTileSize: 0
|
||||
tileSize: 256
|
||||
buildHeightMesh: 0
|
||||
maxJobWorkers: 0
|
||||
preserveTilesOutsideBounds: 0
|
||||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &199681305
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 199681308}
|
||||
- component: {fileID: 199681307}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!20 &199681307
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 199681305}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 1, g: 1, b: 1, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
m_Iso: 200
|
||||
m_ShutterSpeed: 0.005
|
||||
m_Aperture: 16
|
||||
m_FocusDistance: 10
|
||||
m_FocalLength: 50
|
||||
m_BladeCount: 5
|
||||
m_Curvature: {x: 2, y: 11}
|
||||
m_BarrelClipping: 0.25
|
||||
m_Anamorphism: 0
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 1
|
||||
m_AllowMSAA: 1
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!4 &199681308
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 199681305}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: -0.024632145, y: -0.91925687, z: 0.058275227, w: -0.38854104}
|
||||
m_LocalPosition: {x: -202.12589, y: 105.77629, z: -9.098366}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &397911312
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 397911315}
|
||||
- component: {fileID: 397911314}
|
||||
- component: {fileID: 397911313}
|
||||
m_Layer: 0
|
||||
m_Name: Terrain
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 4294967295
|
||||
m_IsActive: 1
|
||||
--- !u!154 &397911313
|
||||
TerrainCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 397911312}
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_ProvidesContacts: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_TerrainData: {fileID: 15600000, guid: 17c8eb6bd61fd8d48a9ba0303a6a20d4, type: 2}
|
||||
m_EnableTreeColliders: 1
|
||||
--- !u!218 &397911314
|
||||
Terrain:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 397911312}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 6
|
||||
m_TerrainData: {fileID: 15600000, guid: 17c8eb6bd61fd8d48a9ba0303a6a20d4, type: 2}
|
||||
m_TreeDistance: 1000
|
||||
m_TreeBillboardDistance: 300
|
||||
m_TreeCrossFadeLength: 5
|
||||
m_TreeMaximumFullLODCount: 205
|
||||
m_DetailObjectDistance: 150
|
||||
m_DetailObjectDensity: 1
|
||||
m_HeightmapPixelError: 1
|
||||
m_SplatMapDistance: 500
|
||||
m_HeightmapMinimumLODSimplification: 0
|
||||
m_HeightmapMaximumLOD: 0
|
||||
m_ShadowCastingMode: 2
|
||||
m_DrawHeightmap: 1
|
||||
m_DrawInstanced: 1
|
||||
m_DrawTreesAndFoliage: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_IgnoreQualitySettings: 0
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_MaterialTemplate: {fileID: 2100000, guid: 594ea882c5a793440b60ff72d896021e, type: 2}
|
||||
m_BakeLightProbesForTrees: 0
|
||||
m_PreserveTreePrototypeLayers: 1
|
||||
m_DeringLightProbesForTrees: 1
|
||||
m_ReceiveGI: 1
|
||||
m_ScaleInLightmap: 0.01
|
||||
m_LightmapParameters: {fileID: 15203, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_GroupingID: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_AllowAutoConnect: 1
|
||||
m_EnableHeightmapRayTracing: 1
|
||||
m_EnableTreesAndDetailsRayTracing: 0
|
||||
m_TreeMotionVectorModeOverride: 3
|
||||
--- !u!4 &397911315
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 397911312}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -256, y: 0, z: -256}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &443065824
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 443065826}
|
||||
- component: {fileID: 443065825}
|
||||
- component: {fileID: 443065827}
|
||||
m_Layer: 0
|
||||
m_Name: Directional Light
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!108 &443065825
|
||||
Light:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 443065824}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 11
|
||||
m_Type: 1
|
||||
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
|
||||
m_Intensity: 1.1
|
||||
m_Range: 10
|
||||
m_SpotAngle: 30
|
||||
m_InnerSpotAngle: 21.80208
|
||||
m_CookieSize: 10
|
||||
m_Shadows:
|
||||
m_Type: 2
|
||||
m_Resolution: -1
|
||||
m_CustomResolution: -1
|
||||
m_Strength: 1
|
||||
m_Bias: 0.05
|
||||
m_NormalBias: 0.4
|
||||
m_NearPlane: 0.2
|
||||
m_CullingMatrixOverride:
|
||||
e00: 1
|
||||
e01: 0
|
||||
e02: 0
|
||||
e03: 0
|
||||
e10: 0
|
||||
e11: 1
|
||||
e12: 0
|
||||
e13: 0
|
||||
e20: 0
|
||||
e21: 0
|
||||
e22: 1
|
||||
e23: 0
|
||||
e30: 0
|
||||
e31: 0
|
||||
e32: 0
|
||||
e33: 1
|
||||
m_UseCullingMatrixOverride: 0
|
||||
m_Cookie: {fileID: 0}
|
||||
m_DrawHalo: 0
|
||||
m_Flare: {fileID: 0}
|
||||
m_RenderMode: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingLayerMask: 1
|
||||
m_Lightmapping: 4
|
||||
m_LightShadowCasterMode: 0
|
||||
m_AreaSize: {x: 1, y: 1}
|
||||
m_BounceIntensity: 1
|
||||
m_ColorTemperature: 6570
|
||||
m_UseColorTemperature: 0
|
||||
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_UseBoundingSphereOverride: 0
|
||||
m_UseViewFrustumForShadowCasterCull: 1
|
||||
m_ForceVisible: 0
|
||||
m_ShadowRadius: 0
|
||||
m_ShadowAngle: 0
|
||||
m_LightUnit: 1
|
||||
m_LuxAtDistance: 1
|
||||
m_EnableSpotReflector: 1
|
||||
--- !u!4 &443065826
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 443065824}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0.40913436, y: -0.23445503, z: 0.1096272, w: 0.8749982}
|
||||
m_LocalPosition: {x: 0, y: 3, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 50.12, y: -30, z: 0}
|
||||
--- !u!114 &443065827
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 443065824}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 474bcb49853aa07438625e644c072ee6, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 3
|
||||
m_UsePipelineSettings: 1
|
||||
m_AdditionalLightsShadowResolutionTier: 2
|
||||
m_LightLayerMask: 1
|
||||
m_RenderingLayers: 1
|
||||
m_CustomShadowLayers: 0
|
||||
m_ShadowLayerMask: 1
|
||||
m_ShadowRenderingLayers: 1
|
||||
m_LightCookieSize: {x: 1, y: 1}
|
||||
m_LightCookieOffset: {x: 0, y: 0}
|
||||
m_SoftShadowQuality: 0
|
||||
--- !u!1 &1270687308
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1270687310}
|
||||
- component: {fileID: 1270687309}
|
||||
m_Layer: 0
|
||||
m_Name: Vegetation Spawner
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1270687309
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1270687308}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 1f710250abab6f24a954bdf3c3c1ac64, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
seed: 0
|
||||
terrains:
|
||||
- {fileID: 397911314}
|
||||
visibleTerrainsOnly: 0
|
||||
treeTypes:
|
||||
- enabled: 1
|
||||
name: DemoSpruce
|
||||
seed: 0
|
||||
probability: 42.8
|
||||
collisionCheck: 0
|
||||
rejectUnderwater: 0
|
||||
heightRange: {x: 45.191055, y: 1344.1031}
|
||||
slopeRange: {x: 0, y: 30.528856}
|
||||
curvatureRange: {x: 0, y: 1}
|
||||
layerMasks:
|
||||
- name: DemoDirt
|
||||
layerID: 2
|
||||
threshold: 0.327
|
||||
- name: DemoGrass
|
||||
layerID: 0
|
||||
threshold: 0.65
|
||||
instanceCount: 384
|
||||
prefabs:
|
||||
- index: 0
|
||||
probability: 100
|
||||
prefab: {fileID: 7488343770391138834, guid: d269f456157d06948a7ff3854fe78119, type: 3}
|
||||
distance: 8
|
||||
scaleRange: {x: 0.8547945, y: 1.2547944}
|
||||
sinkAmount: 0.144
|
||||
- enabled: 1
|
||||
name: DemoBroadleaf
|
||||
seed: 10205
|
||||
probability: 50.2
|
||||
collisionCheck: 1
|
||||
rejectUnderwater: 0
|
||||
heightRange: {x: 17.682198, y: 38.562504}
|
||||
slopeRange: {x: 0, y: 60}
|
||||
curvatureRange: {x: 0, y: 1}
|
||||
layerMasks: []
|
||||
instanceCount: 48
|
||||
prefabs:
|
||||
- index: 1
|
||||
probability: 100
|
||||
prefab: {fileID: 3419883363128097502, guid: ee761a3475b476040a2a6844b77eb15a, type: 3}
|
||||
distance: 21
|
||||
scaleRange: {x: 0.8, y: 1.2}
|
||||
sinkAmount: 0
|
||||
grassPrefabs:
|
||||
- enabled: 1
|
||||
name: GrassField
|
||||
seed: 46765
|
||||
probability: 100
|
||||
collisionCheck: 0
|
||||
rejectUnderwater: 0
|
||||
heightRange: {x: 0, y: 1000}
|
||||
slopeRange: {x: 0, y: 60}
|
||||
curvatureRange: {x: 0, y: 1}
|
||||
layerMasks:
|
||||
- name: DemoGrass
|
||||
layerID: 0
|
||||
threshold: 0.507
|
||||
instanceCount: 123736
|
||||
index: 0
|
||||
type: 1
|
||||
renderAsBillboard: 0
|
||||
prefab: {fileID: 0}
|
||||
gpuInstancing: 1
|
||||
holeEdgePadding: 2
|
||||
alignToGround: 100
|
||||
positionJitter: 0
|
||||
useDensityScaling: 1
|
||||
density: 0
|
||||
billboard: {fileID: 2800000, guid: 409c39177d5ac5545bede68eed1c290b, type: 3}
|
||||
mainColor: {r: 0.2594462, g: 0.496, b: 0.030523075, a: 1}
|
||||
secondaryColor: {r: 0.2594462, g: 0.496, b: 0.030523075, a: 1}
|
||||
linkColors: 1
|
||||
minMaxHeight: {x: 0.92857146, y: 1.4285715}
|
||||
minMaxWidth: {x: 1.2285714, y: 1.6285714}
|
||||
noiseSize: 0.1
|
||||
- enabled: 1
|
||||
name: Bush
|
||||
seed: 83565
|
||||
probability: 92.5
|
||||
collisionCheck: 0
|
||||
rejectUnderwater: 0
|
||||
heightRange: {x: 0, y: 1000}
|
||||
slopeRange: {x: 7.894737, y: 60}
|
||||
curvatureRange: {x: 0, y: 0.31578946}
|
||||
layerMasks:
|
||||
- name: DemoGrass
|
||||
layerID: 0
|
||||
threshold: 0.198
|
||||
- name: DemoDirt
|
||||
layerID: 2
|
||||
threshold: 0.47
|
||||
instanceCount: 39510
|
||||
index: 1
|
||||
type: 1
|
||||
renderAsBillboard: 1
|
||||
prefab: {fileID: 0}
|
||||
gpuInstancing: 1
|
||||
holeEdgePadding: 2
|
||||
alignToGround: 100
|
||||
positionJitter: 0
|
||||
useDensityScaling: 1
|
||||
density: 0
|
||||
billboard: {fileID: 2800000, guid: a45825649470a7b45a56ecd6a9fdae69, type: 3}
|
||||
mainColor: {r: 0.14217353, g: 0.31132078, b: 0.024283024, a: 1}
|
||||
secondaryColor: {r: 0.14217353, g: 0.31132078, b: 0.024283024, a: 1}
|
||||
linkColors: 1
|
||||
minMaxHeight: {x: 1.5000001, y: 2}
|
||||
minMaxWidth: {x: 1.5999999, y: 2}
|
||||
noiseSize: 0.1
|
||||
terrainSettings:
|
||||
drawTreesAndFoliage: 1
|
||||
preservePrefabLayer: 1
|
||||
treeLightProbes: 0
|
||||
treeDistance: 1000
|
||||
billboardStart: 300
|
||||
maxMeshTrees: 205
|
||||
detailScattermode: 0
|
||||
grassDistance: 150
|
||||
grassDensity: 1
|
||||
windStrength: 0.15
|
||||
windSpeed: 3
|
||||
windFrequency: 8
|
||||
wintTint: {r: 0.6886792, g: 0.6886792, b: 0.6886792, a: 1}
|
||||
cellSize: 64
|
||||
cellDivisions: 4
|
||||
highPrecisionCollision: 1
|
||||
collisionLayerMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
terrainMinMaxHeight: {x: 17.682198, y: 91.713394}
|
||||
detailResolution: 512
|
||||
detailResolutionIndex: 2
|
||||
grassPatchSize: 128
|
||||
grassPatchSizeIndex: 4
|
||||
tempColliders: []
|
||||
waterHeight: 0
|
||||
autoRespawnTrees: 1
|
||||
--- !u!4 &1270687310
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1270687308}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1903714068
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1903714070}
|
||||
- component: {fileID: 1903714069}
|
||||
m_Layer: 0
|
||||
m_Name: Sphere Collider
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!135 &1903714069
|
||||
SphereCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1903714068}
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_IsTrigger: 0
|
||||
m_ProvidesContacts: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Radius: 0.5
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &1903714070
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1903714068}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 116.3, y: 32.2, z: -39.6}
|
||||
m_LocalScale: {x: 92.792, y: 92.792, z: 92.792}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1660057539 &9223372036854775807
|
||||
SceneRoots:
|
||||
m_ObjectHideFlags: 0
|
||||
m_Roots:
|
||||
- {fileID: 199681308}
|
||||
- {fileID: 443065826}
|
||||
- {fileID: 397911315}
|
||||
- {fileID: 1270687310}
|
||||
- {fileID: 1903714070}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
fileFormatVersion: 2
|
||||
guid: fb6e12cfd5628144393f171a9a6fb54f
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/VegetationSpawnerExample.unity
|
||||
uploadId: 712351
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!850595691 &4890085278179872738
|
||||
LightingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: VegetationSpawnerExampleSettings
|
||||
serializedVersion: 9
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 0
|
||||
m_RealtimeEnvironmentLighting: 1
|
||||
m_BounceScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_UsingShadowmask: 1
|
||||
m_BakeBackend: 1
|
||||
m_LightmapMaxSize: 1024
|
||||
m_LightmapSizeFixed: 0
|
||||
m_UseMipmapLimits: 1
|
||||
m_BakeResolution: 40
|
||||
m_Padding: 2
|
||||
m_LightmapCompression: 3
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 1
|
||||
m_CompAOExponentDirect: 0
|
||||
m_ExtractAO: 0
|
||||
m_MixedBakeMode: 2
|
||||
m_LightmapsBakeMode: 1
|
||||
m_FilterMode: 1
|
||||
m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ExportTrainingData: 0
|
||||
m_EnableWorkerProcessBaking: 1
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_RealtimeResolution: 2
|
||||
m_ForceWhiteAlbedo: 0
|
||||
m_ForceUpdates: 0
|
||||
m_PVRCulling: 1
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVREnvironmentSampleCount: 512
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_PVRBounces: 2
|
||||
m_PVRMinBounces: 2
|
||||
m_PVREnvironmentImportanceSampling: 0
|
||||
m_PVRFilteringMode: 2
|
||||
m_PVRDenoiserTypeDirect: 0
|
||||
m_PVRDenoiserTypeIndirect: 0
|
||||
m_PVRDenoiserTypeAO: 0
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_RespectSceneVisibilityWhenBakingGI: 0
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 27a173cf57898a74284f9523236260a9
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 4890085278179872738
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/_Demo/VegetationSpawnerExampleSettings.lighting
|
||||
uploadId: 712351
|
||||
12
unity_prj/letters/Assets/VegetationSpawner/package.json
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"name": "sc.terrain.vegetationspawner",
|
||||
"displayName": "Vegetation Spawner",
|
||||
"version": "1.1.0",
|
||||
"unity": "2019.3",
|
||||
"description": "Procedural vegetation spawner for the Unity terrain system",
|
||||
"author": {
|
||||
"name": "Staggart Creations",
|
||||
"email": "contact@staggart.xyz",
|
||||
"url": "http://staggart.xyz/"
|
||||
}
|
||||
}
|
||||
14
unity_prj/letters/Assets/VegetationSpawner/package.json.meta
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d6ebd7e4a48f5644d80589adb5b94e91
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177192
|
||||
packageName: Vegetation Spawner
|
||||
packageVersion: 1.1.0
|
||||
assetPath: Assets/VegetationSpawner/package.json
|
||||
uploadId: 712351
|
||||
8
unity_prj/letters/Assets/shuka.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e49b60623a838f6488dc16864e575f9d
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
unity_prj/letters/Assets/shuka/mat.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: cfad970f94e2d1c44a572620eada80a2
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
139
unity_prj/letters/Assets/shuka/mat/Material.mat
Normal file
|
|
@ -0,0 +1,139 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &-6081974806994107518
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 11
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Editor::UnityEditor.Rendering.Universal.AssetVersion
|
||||
version: 10
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Material
|
||||
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap:
|
||||
RenderType: Opaque
|
||||
disabledShaderPasses:
|
||||
- MOTIONVECTORS
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BaseMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SpecGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_Lightmaps:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_LightmapsInd:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_ShadowMasks:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _AddPrecomputedVelocity: 0
|
||||
- _AlphaClip: 0
|
||||
- _AlphaToMask: 0
|
||||
- _Blend: 0
|
||||
- _BlendModePreserveSpecular: 1
|
||||
- _BumpScale: 1
|
||||
- _ClearCoatMask: 0
|
||||
- _ClearCoatSmoothness: 0
|
||||
- _Cull: 2
|
||||
- _Cutoff: 0.5
|
||||
- _DetailAlbedoMapScale: 1
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _DstBlendAlpha: 0
|
||||
- _EnvironmentReflections: 1
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.615942
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _QueueOffset: 0
|
||||
- _ReceiveShadows: 1
|
||||
- _Smoothness: 0.615942
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _SrcBlendAlpha: 1
|
||||
- _Surface: 0
|
||||
- _UVSec: 0
|
||||
- _WorkflowMode: 1
|
||||
- _XRMotionVectorsPass: 1
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _BaseColor: {r: 0.9063317, g: 0.9063317, b: 0.9063317, a: 1}
|
||||
- _Color: {r: 0.9063317, g: 0.9063317, b: 0.9063317, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 0}
|
||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
m_AllowLocking: 1
|
||||
8
unity_prj/letters/Assets/shuka/mat/Material.mat.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1014533561d3de641966cb1b8867facc
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
509
unity_prj/letters/Assets/shuka/shuka_tl.playable
Normal file
|
|
@ -0,0 +1,509 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &-8074321225865599994
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: d21dcc2386d650c4597f3633c75a1f98, type: 3}
|
||||
m_Name: Animation Track
|
||||
m_EditorClassIdentifier: Unity.Timeline::UnityEngine.Timeline.AnimationTrack
|
||||
m_Version: 3
|
||||
m_AnimClip: {fileID: 0}
|
||||
m_Locked: 0
|
||||
m_Muted: 0
|
||||
m_CustomPlayableFullTypename:
|
||||
m_Curves: {fileID: 0}
|
||||
m_Parent: {fileID: 11400000}
|
||||
m_Children: []
|
||||
m_Clips: []
|
||||
m_Markers:
|
||||
m_Objects: []
|
||||
m_InfiniteClipPreExtrapolation: 1
|
||||
m_InfiniteClipPostExtrapolation: 1
|
||||
m_InfiniteClipOffsetPosition: {x: 71.9011, y: 27.24541, z: 71.90113}
|
||||
m_InfiniteClipOffsetEulerAngles: {x: -0, y: 0, z: 0}
|
||||
m_InfiniteClipTimeOffset: 0
|
||||
m_InfiniteClipRemoveOffset: 0
|
||||
m_InfiniteClipApplyFootIK: 1
|
||||
mInfiniteClipLoop: 0
|
||||
m_MatchTargetFields: 63
|
||||
m_Position: {x: 0, y: 0, z: 0}
|
||||
m_EulerAngles: {x: 0, y: 0, z: 0}
|
||||
m_AvatarMask: {fileID: 0}
|
||||
m_ApplyAvatarMask: 1
|
||||
m_TrackOffset: 0
|
||||
m_InfiniteClip: {fileID: 8002126032795025850}
|
||||
m_OpenClipOffsetRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_Rotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_ApplyOffsets: 0
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: bfda56da833e2384a9677cd3c976a436, type: 3}
|
||||
m_Name: shuka_tl
|
||||
m_EditorClassIdentifier: Unity.Timeline::UnityEngine.Timeline.TimelineAsset
|
||||
m_Version: 0
|
||||
m_Tracks:
|
||||
- {fileID: -8074321225865599994}
|
||||
m_FixedDuration: 0
|
||||
m_EditorSettings:
|
||||
m_Framerate: 60
|
||||
m_ScenePreview: 1
|
||||
m_DurationMode: 0
|
||||
m_MarkerTrack: {fileID: 0}
|
||||
--- !u!74 &8002126032795025850
|
||||
AnimationClip:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Recorded
|
||||
serializedVersion: 8
|
||||
m_Legacy: 0
|
||||
m_Compressed: 0
|
||||
m_UseHighQualityCurve: 1
|
||||
m_RotationCurves: []
|
||||
m_CompressedRotationCurves: []
|
||||
m_EulerCurves:
|
||||
- curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: {x: -0.3, y: -0.002, z: -3.63}
|
||||
inSlope: {x: 0, y: 0, z: 0}
|
||||
outSlope: {x: 0, y: 0, z: 0}
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||
- serializedVersion: 3
|
||||
time: 3.3333333
|
||||
value: {x: -0.3, y: -0.002, z: 3.042}
|
||||
inSlope: {x: 0, y: 0, z: 0.008829351}
|
||||
outSlope: {x: 0, y: 0, z: 0.008829351}
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||
- serializedVersion: 3
|
||||
time: 4.983333
|
||||
value: {x: -4.867, y: -0.245, z: 3.053}
|
||||
inSlope: {x: 0, y: 0, z: 0.014426123}
|
||||
outSlope: {x: 0, y: 0, z: 0.014426123}
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||
- serializedVersion: 3
|
||||
time: 6.383333
|
||||
value: {x: -4.867, y: -0.245, z: 29.988}
|
||||
inSlope: {x: 0, y: 0, z: 0}
|
||||
outSlope: {x: 0, y: 0, z: 0}
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||
- serializedVersion: 3
|
||||
time: 6.983333
|
||||
value: {x: -19.522, y: 5.801, z: -22.677}
|
||||
inSlope: {x: 0, y: 0, z: 0}
|
||||
outSlope: {x: 0, y: 0, z: 0}
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
path: Armature/Bone/Bone.001
|
||||
m_PositionCurves:
|
||||
- curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: {x: 2.4010663e-10, y: 0.010000597, z: 0}
|
||||
inSlope: {x: 0, y: 0, z: 0}
|
||||
outSlope: {x: 0, y: 0, z: 0}
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||
- serializedVersion: 3
|
||||
time: 6.383333
|
||||
value: {x: 2.4010663e-10, y: 0.010000597, z: 0}
|
||||
inSlope: {x: 0, y: 0, z: 0}
|
||||
outSlope: {x: 0, y: 0, z: 0}
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
path: Armature/Bone/Bone.001
|
||||
m_ScaleCurves: []
|
||||
m_FloatCurves: []
|
||||
m_PPtrCurves: []
|
||||
m_SampleRate: 60
|
||||
m_WrapMode: 0
|
||||
m_Bounds:
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
m_Extent: {x: 0, y: 0, z: 0}
|
||||
m_ClipBindingConstant:
|
||||
genericBindings:
|
||||
- serializedVersion: 2
|
||||
path: 208612664
|
||||
attribute: 4
|
||||
script: {fileID: 0}
|
||||
typeID: 4
|
||||
customType: 4
|
||||
isPPtrCurve: 0
|
||||
isIntCurve: 0
|
||||
isSerializeReferenceCurve: 0
|
||||
metaData: 0
|
||||
- serializedVersion: 2
|
||||
path: 208612664
|
||||
attribute: 1
|
||||
script: {fileID: 0}
|
||||
typeID: 4
|
||||
customType: 0
|
||||
isPPtrCurve: 0
|
||||
isIntCurve: 0
|
||||
isSerializeReferenceCurve: 0
|
||||
metaData: 0
|
||||
pptrCurveMapping: []
|
||||
m_AnimationClipSettings:
|
||||
serializedVersion: 2
|
||||
m_AdditiveReferencePoseClip: {fileID: 0}
|
||||
m_AdditiveReferencePoseTime: 0
|
||||
m_StartTime: 0
|
||||
m_StopTime: 6.983333
|
||||
m_OrientationOffsetY: 0
|
||||
m_Level: 0
|
||||
m_CycleOffset: 0
|
||||
m_HasAdditiveReferencePose: 0
|
||||
m_LoopTime: 0
|
||||
m_LoopBlend: 0
|
||||
m_LoopBlendOrientation: 0
|
||||
m_LoopBlendPositionY: 0
|
||||
m_LoopBlendPositionXZ: 0
|
||||
m_KeepOriginalOrientation: 0
|
||||
m_KeepOriginalPositionY: 1
|
||||
m_KeepOriginalPositionXZ: 0
|
||||
m_HeightFromFeet: 0
|
||||
m_Mirror: 0
|
||||
m_EditorCurves:
|
||||
- serializedVersion: 2
|
||||
curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: -0.3
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 3.3333333
|
||||
value: -0.3
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 4.983333
|
||||
value: -4.867
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 6.383333
|
||||
value: -4.867
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 6.983333
|
||||
value: -19.522
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
attribute: localEulerAnglesRaw.x
|
||||
path: Armature/Bone/Bone.001
|
||||
classID: 4
|
||||
script: {fileID: 0}
|
||||
flags: 16
|
||||
- serializedVersion: 2
|
||||
curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: -0.002
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 3.3333333
|
||||
value: -0.002
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 4.983333
|
||||
value: -0.245
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 6.383333
|
||||
value: -0.245
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 6.983333
|
||||
value: 5.801
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
attribute: localEulerAnglesRaw.y
|
||||
path: Armature/Bone/Bone.001
|
||||
classID: 4
|
||||
script: {fileID: 0}
|
||||
flags: 16
|
||||
- serializedVersion: 2
|
||||
curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: -3.63
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 3.3333333
|
||||
value: 3.042
|
||||
inSlope: 0.008829351
|
||||
outSlope: 0.008829351
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 4.983333
|
||||
value: 3.053
|
||||
inSlope: 0.014426123
|
||||
outSlope: 0.014426123
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 6.383333
|
||||
value: 29.988
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 6.983333
|
||||
value: -22.677
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
attribute: localEulerAnglesRaw.z
|
||||
path: Armature/Bone/Bone.001
|
||||
classID: 4
|
||||
script: {fileID: 0}
|
||||
flags: 16
|
||||
- serializedVersion: 2
|
||||
curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 2.4010663e-10
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 6.383333
|
||||
value: 2.4010663e-10
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
attribute: m_LocalPosition.x
|
||||
path: Armature/Bone/Bone.001
|
||||
classID: 4
|
||||
script: {fileID: 0}
|
||||
flags: 0
|
||||
- serializedVersion: 2
|
||||
curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0.010000597
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 6.383333
|
||||
value: 0.010000597
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
attribute: m_LocalPosition.y
|
||||
path: Armature/Bone/Bone.001
|
||||
classID: 4
|
||||
script: {fileID: 0}
|
||||
flags: 0
|
||||
- serializedVersion: 2
|
||||
curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 6.383333
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 136
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
attribute: m_LocalPosition.z
|
||||
path: Armature/Bone/Bone.001
|
||||
classID: 4
|
||||
script: {fileID: 0}
|
||||
flags: 0
|
||||
m_EulerEditorCurves:
|
||||
- serializedVersion: 2
|
||||
curve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
attribute: m_LocalEulerAngles.x
|
||||
path: Armature/Bone/Bone.001
|
||||
classID: 4
|
||||
script: {fileID: 0}
|
||||
flags: 0
|
||||
- serializedVersion: 2
|
||||
curve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
attribute: m_LocalEulerAngles.y
|
||||
path: Armature/Bone/Bone.001
|
||||
classID: 4
|
||||
script: {fileID: 0}
|
||||
flags: 0
|
||||
- serializedVersion: 2
|
||||
curve:
|
||||
serializedVersion: 2
|
||||
m_Curve: []
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
attribute: m_LocalEulerAngles.z
|
||||
path: Armature/Bone/Bone.001
|
||||
classID: 4
|
||||
script: {fileID: 0}
|
||||
flags: 0
|
||||
m_HasGenericRootTransform: 0
|
||||
m_HasMotionFloatCurves: 0
|
||||
m_Events: []
|
||||
8
unity_prj/letters/Assets/shuka/shuka_tl.playable.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1fe48ec10bd90334db982cf0090f3277
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
unity_prj/letters/Assets/shuka/рыба2text5.fbx
Normal file
119
unity_prj/letters/Assets/shuka/рыба2text5.fbx.meta
Normal file
|
|
@ -0,0 +1,119 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 24b297cc69d1b23428453f31650c0919
|
||||
ModelImporter:
|
||||
serializedVersion: 24501
|
||||
internalIDToNameTable: []
|
||||
externalObjects:
|
||||
- first:
|
||||
type: UnityEngine:Material
|
||||
assembly: UnityEngine.CoreModule
|
||||
name: Material
|
||||
second: {fileID: 2100000, guid: 1014533561d3de641966cb1b8867facc, type: 2}
|
||||
materials:
|
||||
materialImportMode: 2
|
||||
materialName: 0
|
||||
materialSearch: 1
|
||||
materialLocation: 1
|
||||
searchTexturesGlobally: 0
|
||||
animations:
|
||||
legacyGenerateAnimations: 4
|
||||
bakeSimulation: 0
|
||||
resampleCurves: 1
|
||||
optimizeGameObjects: 0
|
||||
removeConstantScaleCurves: 0
|
||||
motionNodeName:
|
||||
animationImportErrors:
|
||||
animationImportWarnings:
|
||||
animationRetargetingWarnings:
|
||||
animationDoRetargetingWarnings: 0
|
||||
importAnimatedCustomProperties: 0
|
||||
importConstraints: 0
|
||||
animationCompression: 1
|
||||
animationRotationError: 0.5
|
||||
animationPositionError: 0.5
|
||||
animationScaleError: 0.5
|
||||
animationWrapMode: 0
|
||||
extraExposedTransformPaths: []
|
||||
extraUserProperties: []
|
||||
clipAnimations: []
|
||||
isReadable: 0
|
||||
meshes:
|
||||
lODScreenPercentages: []
|
||||
globalScale: 1
|
||||
meshCompression: 0
|
||||
addColliders: 0
|
||||
useSRGBMaterialColor: 1
|
||||
sortHierarchyByName: 1
|
||||
importPhysicalCameras: 1
|
||||
importVisibility: 1
|
||||
importBlendShapes: 1
|
||||
importCameras: 1
|
||||
importLights: 1
|
||||
nodeNameCollisionStrategy: 1
|
||||
fileIdsGeneration: 2
|
||||
swapUVChannels: 0
|
||||
generateSecondaryUV: 0
|
||||
useFileUnits: 1
|
||||
keepQuads: 0
|
||||
weldVertices: 1
|
||||
bakeAxisConversion: 0
|
||||
preserveHierarchy: 0
|
||||
skinWeightsMode: 0
|
||||
maxBonesPerVertex: 4
|
||||
minBoneWeight: 0.001
|
||||
optimizeBones: 1
|
||||
generateMeshLods: 0
|
||||
meshLodGenerationFlags: 0
|
||||
maximumMeshLod: -1
|
||||
importUVs: -1
|
||||
importVertexColors: 1
|
||||
meshOptimizationFlags: -1
|
||||
indexFormat: 0
|
||||
secondaryUVAngleDistortion: 8
|
||||
secondaryUVAreaDistortion: 15.000001
|
||||
secondaryUVHardAngle: 88
|
||||
secondaryUVMarginMethod: 1
|
||||
secondaryUVMinLightmapResolution: 40
|
||||
secondaryUVMinObjectScale: 1
|
||||
secondaryUVPackMargin: 4
|
||||
useFileScale: 1
|
||||
strictVertexDataChecks: 0
|
||||
tangentSpace:
|
||||
normalSmoothAngle: 60
|
||||
normalImportMode: 0
|
||||
tangentImportMode: 3
|
||||
normalCalculationMode: 4
|
||||
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
||||
blendShapeNormalImportMode: 1
|
||||
normalSmoothingSource: 0
|
||||
calculateBlendshapeNormalsDeltaFromImportedNormals: 0
|
||||
referencedClips: []
|
||||
importAnimation: 1
|
||||
humanDescription:
|
||||
serializedVersion: 3
|
||||
human: []
|
||||
skeleton: []
|
||||
armTwist: 0.5
|
||||
foreArmTwist: 0.5
|
||||
upperLegTwist: 0.5
|
||||
legTwist: 0.5
|
||||
armStretch: 0.05
|
||||
legStretch: 0.05
|
||||
feetSpacing: 0
|
||||
globalScale: 1
|
||||
rootMotionBoneName:
|
||||
hasTranslationDoF: 0
|
||||
hasExtraRoot: 0
|
||||
skeletonHasParents: 1
|
||||
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||
autoGenerateAvatarMappingIfUnspecified: 1
|
||||
animationType: 2
|
||||
humanoidOversampling: 1
|
||||
avatarSetup: 0
|
||||
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
|
||||
importBlendShapeDeformPercent: 1
|
||||
remapMaterialsIfMaterialImportModeIsNone: 0
|
||||
additionalBone: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
16
unity_prj/letters/ProjectSettings/TimelineSettings.asset
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &1
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 53
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a287be6c49135cd4f9b2b8666c39d999, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Unity.Timeline.Editor::TimelineProjectSettings
|
||||
assetDefaultFramerate: 60
|
||||
m_DefaultFrameRate: 60
|
||||
|
|
@ -13,3 +13,4 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_LastMaterialVersion: 10
|
||||
m_ProjectSettingFolderPath: URPDefaultResources
|
||||
|
|
|
|||