Class MaterialPropertiesResolver
Inheritance
System.Object
UnityEngine.Object
UnityEngine.ScriptableObject
MaterialPropertiesResolver
Inherited Members
UnityEngine.ScriptableObject.SetDirty()
UnityEngine.ScriptableObject.CreateInstance(System.String)
UnityEngine.ScriptableObject.CreateInstance(System.Type)
UnityEngine.ScriptableObject.CreateInstance<T>()
UnityEngine.Object.GetInstanceID()
UnityEngine.Object.GetHashCode()
UnityEngine.Object.Equals(System.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform, System.Boolean)
UnityEngine.Object.Instantiate<T>(T)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform, System.Boolean)
UnityEngine.Object.Destroy(UnityEngine.Object, System.Single)
UnityEngine.Object.Destroy(UnityEngine.Object)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object, System.Boolean)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object)
UnityEngine.Object.FindObjectsOfType(System.Type)
UnityEngine.Object.DontDestroyOnLoad(UnityEngine.Object)
UnityEngine.Object.DestroyObject(UnityEngine.Object, System.Single)
UnityEngine.Object.DestroyObject(UnityEngine.Object)
UnityEngine.Object.FindSceneObjectsOfType(System.Type)
UnityEngine.Object.FindObjectsOfTypeIncludingAssets(System.Type)
UnityEngine.Object.FindObjectsOfType<T>()
UnityEngine.Object.FindObjectOfType<T>()
UnityEngine.Object.FindObjectsOfTypeAll(System.Type)
UnityEngine.Object.FindObjectOfType(System.Type)
UnityEngine.Object.ToString()
UnityEngine.Object.name
UnityEngine.Object.hideFlags
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Bayat.Core
Assembly: Bayat.Core.Runtime.dll
Syntax
public class MaterialPropertiesResolver : ScriptableObject
Fields
| Improve this Doc View Sourcematerials
Declaration
[SerializeField]
protected List<Material> materials
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<UnityEngine.Material> |
materialsLookup
Declaration
protected Dictionary<string, RuntimeMaterialProperties> materialsLookup
Field Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, RuntimeMaterialProperties> |
materialsProperties
Declaration
[SerializeField]
protected List<RuntimeMaterialProperties> materialsProperties
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<RuntimeMaterialProperties> |
Properties
| Improve this Doc View SourceCurrent
Gets the current material properties reference resolver.
Declaration
public static MaterialPropertiesResolver Current { get; }
Property Value
Type | Description |
---|---|
MaterialPropertiesResolver |
Materials
Gets the materials.
Declaration
public virtual List<Material> Materials { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<UnityEngine.Material> |
MaterialsLookup
Declaration
public virtual Dictionary<string, RuntimeMaterialProperties> MaterialsLookup { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, RuntimeMaterialProperties> |
MaterialsProperties
Gets the materials properties.
Declaration
public virtual List<RuntimeMaterialProperties> MaterialsProperties { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<RuntimeMaterialProperties> |
Methods
| Improve this Doc View SourceGetMaterialProperties(Material)
Gets the material properties.
Declaration
public virtual RuntimeMaterialProperties GetMaterialProperties(Material material)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Material | material | The material |
Returns
Type | Description |
---|---|
RuntimeMaterialProperties | The material properties RuntimeMaterialProperties |
HasNullReferences()
Checks whether if has any null references or not.
Declaration
public virtual bool HasNullReferences()
Returns
Type | Description |
---|---|
System.Boolean | True if has null references otherwise false |
HasUnusedReferences()
Checks whether if has any unused references or not.
Declaration
public virtual bool HasUnusedReferences()
Returns
Type | Description |
---|---|
System.Boolean | True if has unused references otherwise false |
RemoveNullReferences()
Removes the null references.
Declaration
public virtual int RemoveNullReferences()
Returns
Type | Description |
---|---|
System.Int32 | The count of removed references |
RemoveUnusedReferences()
Removes all the unused references.
Declaration
public virtual int RemoveUnusedReferences()
Returns
Type | Description |
---|---|
System.Int32 | The count of removed references |
Reset()
Declaration
public virtual void Reset()