Show / Hide Table of Contents

Class DefaultReferences

This scriptable object contains references to frequently used prefabs, materials etc.

Inheritance
System.Object
UnityEngine.Object
UnityEngine.ScriptableObject
DefaultReferences
Namespace: VRSketchingGeometry
Assembly: VRSketchingGeometry.dll
Syntax
[CreateAssetMenu(fileName = "DefaultReferences", menuName = "ScriptableObjects/DefaultReferences", order = 1)]
public class DefaultReferences : ScriptableObject
Remarks

Original author: tterpi

Fields

DefaultTextureDirectory

The directory for textures that are referenced in a serialized sketch.

Declaration
public string DefaultTextureDirectory
Field Value
Type Description
System.String

LinearInterpolationLineSketchObjectPrefab

Declaration
public GameObject LinearInterpolationLineSketchObjectPrefab
Field Value
Type Description
UnityEngine.GameObject

LineSketchObjectPrefab

Declaration
public GameObject LineSketchObjectPrefab
Field Value
Type Description
UnityEngine.GameObject

PatchSketchObjectPrefab

Declaration
public GameObject PatchSketchObjectPrefab
Field Value
Type Description
UnityEngine.GameObject

RibbonSketchObjectPrefab

Declaration
public GameObject RibbonSketchObjectPrefab
Field Value
Type Description
UnityEngine.GameObject

SketchObjectGroupPrefab

Declaration
public GameObject SketchObjectGroupPrefab
Field Value
Type Description
UnityEngine.GameObject

SketchObjectSelectionPrefab

Declaration
public GameObject SketchObjectSelectionPrefab
Field Value
Type Description
UnityEngine.GameObject

SketchWorldPrefab

Declaration
public GameObject SketchWorldPrefab
Field Value
Type Description
UnityEngine.GameObject

StandardSketchMaterial

Declaration
public Material StandardSketchMaterial
Field Value
Type Description
UnityEngine.Material

TwoSidedSketchMaterial

Declaration
public Material TwoSidedSketchMaterial
Field Value
Type Description
UnityEngine.Material

Methods

GetMaterial(SketchMaterialData.ShaderType)

Get a material object according to the shader type.

Declaration
public Material GetMaterial(SketchMaterialData.ShaderType type)
Parameters
Type Name Description
SketchMaterialData.ShaderType type
Returns
Type Description
UnityEngine.Material

GetMaterialFromDictionary(SketchMaterialData)

Get a material with the properties of the material data applied.

Declaration
public Material GetMaterialFromDictionary(SketchMaterialData sketchMaterialData)
Parameters
Type Name Description
SketchMaterialData sketchMaterialData
Returns
Type Description
UnityEngine.Material
Remarks

Returns an existing material instance if an identical material was created before.

In This Article
Back to top Generated by DocFX