Class ScenePropSet
A scene's baked props from one source (its scatter's trees and large props, its cliffs' rocks, its rivers' boulders): the prefabs they are made of and where each one stands. The client draws them instanced on the GPU; no prop is a scene object.
[PreferBinarySerialization]
public sealed class ScenePropSet : ScriptableObject
- Inheritance
-
ObjectScriptableObjectScenePropSet
- Inherited Members
-
ScriptableObject.SetDirty()ScriptableObject.CreateInstance<T>()Object.GetEntityId()Object.GetInstanceID()Object.GetHashCode()Object.InstantiateAsync<T>(T)Object.InstantiateAsync<T>(T, Transform)Object.InstantiateAsync<T>(T, Vector3, Quaternion)Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Scene)Object.Instantiate<T>(T, InstantiateParameters)Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.FindObjectsByType<T>()Object.FindObjectsByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
Remarks
Data, not objects. As scene objects a generated scene's props were hundreds of thousands of game objects, renderers and LOD groups, culled and levelled on the main thread every frame and filling the scene file. Here a prop is a prototype index and a transform (40 bytes), the prototypes are shared prefab assets, and the collision the server and client stand on is baked separately into one merged collider per chunk, saved in the scene.
Client only. Referenced from a SceneProps under a ClientOnlyObject, so a server build leaves the set and its prefabs out: the server has only the chunk colliders.
Fields
Props
public ScenePropSet.Prop[] Props
Field Value
- Prop[]
Prototypes
public ScenePropSet.Prototype[] Prototypes
Field Value
Source
[Tooltip("Where these props came from, for tools and logs (Scatter, Cliffs, Boulders).")]
public string Source