Struct MaterialType
Determine which IStreamingMaterial the StreamingMaterialFactory should instantiate.
Implements
Inherited Members
Namespace: Unity.Cloud.DataStreaming.Runtime
Assembly: Unity.Cloud.DataStreaming.Runtime.dll
Syntax
public readonly struct MaterialType : IEquatable<MaterialType>
Fields
AlphaMode
Determine if the material is opaque, alpha tested, or transparent
Declaration
public readonly MaterialAlphaMode AlphaMode
Field Value
Type | Description |
---|---|
MaterialAlphaMode |
Lighting
Determine if the material is lit or unlit
Declaration
public readonly MaterialLighting Lighting
Field Value
Type | Description |
---|---|
MaterialLighting |
Methods
Equals(object)
Get if this instance is the same as the given obj
.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | Compare with this instance. |
Returns
Type | Description |
---|---|
bool |
Overrides
Equals(MaterialType)
Get if two MaterialType represent the same.
Declaration
public bool Equals(MaterialType obj)
Parameters
Type | Name | Description |
---|---|---|
MaterialType | obj | Compare with this instance. |
Returns
Type | Description |
---|---|
bool |
GetHashCode()
Compute a hash code for the object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |
Overrides
Remarks
- You should not assume that equal hash codes imply object equality.
- You should never persist or use a hash code outside the application domain in which it was created, because the same object may hash differently across application domains, processes, and platforms.