Class SketchMaterialData
Data class for the properties of a material.
Inheritance
System.Object
SketchMaterialData
Assembly: VRSketchingGeometry.dll
Syntax
public class SketchMaterialData : IEquatable<SketchMaterialData>
Constructors
SketchMaterialData()
Declaration
public SketchMaterialData()
SketchMaterialData(Material)
Declaration
public SketchMaterialData(Material material)
Parameters
| Type |
Name |
Description |
| UnityEngine.Material |
material |
|
Fields
AlbedoColor
Declaration
Field Value
| Type |
Description |
| UnityEngine.Color |
|
AlbedoMapName
Declaration
public string AlbedoMapName
Field Value
| Type |
Description |
| System.String |
|
DisplacementMapName
Declaration
public string DisplacementMapName
Field Value
| Type |
Description |
| System.String |
|
Declaration
public string MetallicMapName
Field Value
| Type |
Description |
| System.String |
|
Declaration
public float MetallicValue
Field Value
| Type |
Description |
| System.Single |
|
NormalMapName
Declaration
public string NormalMapName
Field Value
| Type |
Description |
| System.String |
|
Shader
Declaration
public SketchMaterialData.ShaderType Shader
Field Value
SmoothnessValue
Declaration
public float SmoothnessValue
Field Value
| Type |
Description |
| System.Single |
|
UVTiling
Declaration
Field Value
| Type |
Description |
| UnityEngine.Vector2 |
|
Methods
ApplyMaterialProperties(Material, String)
Declaration
public void ApplyMaterialProperties(in Material material, string textureBasePath)
Parameters
| Type |
Name |
Description |
| UnityEngine.Material |
material |
|
| System.String |
textureBasePath |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| System.Object |
obj |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Equals(SketchMaterialData)
Declaration
public bool Equals(SketchMaterialData other)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
System.Object.GetHashCode()
LoadTextureFromPng(String)
Declaration
public static Texture2D LoadTextureFromPng(string path)
Parameters
| Type |
Name |
Description |
| System.String |
path |
|
Returns
| Type |
Description |
| UnityEngine.Texture2D |
|