Show / Hide Table of Contents

Class DaggerfallMesh

Inheritance
Object
Object
Component
Behaviour
MonoBehaviour
DaggerfallMesh
Namespace: DaggerfallWorkshop
Assembly: Assembly-CSharp.dll
Syntax
[RequireComponent(typeof(MeshFilter))]
[RequireComponent(typeof(MeshRenderer))]
public class DaggerfallMesh : MonoBehaviour

Properties

| Improve this Doc View Source

Climate

Declaration
public ClimateBases Climate { get; set; }
Property Value
Type Description
ClimateBases
| Improve this Doc View Source

DefaultTexturesCount

Gets number of default textures on model.

Declaration
public int DefaultTexturesCount { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

Season

Declaration
public ClimateSeason Season { get; set; }
Property Value
Type Description
ClimateSeason
| Improve this Doc View Source

WindowStyle

Declaration
public WindowStyle WindowStyle { get; set; }
Property Value
Type Description
WindowStyle

Methods

| Improve this Doc View Source

ApplyCurrentClimate()

Applies current climate settings to model.

Declaration
public void ApplyCurrentClimate()
| Improve this Doc View Source

DisableClimate(DaggerfallUnity)

Rebuild materials back to default with no climate modifier.

Declaration
public void DisableClimate(DaggerfallUnity dfUnity)
Parameters
Type Name Description
DaggerfallUnity dfUnity

DaggerfallUnity singleton. Required for content readers and settings.

| Improve this Doc View Source

GetDefaultTextures()

Get default texture keys.

Declaration
public int[] GetDefaultTextures()
Returns
Type Description
Int32[]

Copy of default texture array.

| Improve this Doc View Source

SetClimate(ClimateBases, ClimateSeason, WindowStyle)

Rebuild materials back to default with no climate modifier.

Declaration
public void SetClimate(ClimateBases climate, ClimateSeason season, WindowStyle windowStyle)
Parameters
Type Name Description
ClimateBases climate

Climate to set.

ClimateSeason season

Season to set.

WindowStyle windowStyle

Style of window to set.

| Improve this Doc View Source

SetDefaultTextures(Int32[])

Set default texture keys. This is used to rebuild materials for texture swaps.

Declaration
public void SetDefaultTextures(int[] textureKeys)
Parameters
Type Name Description
Int32[] textureKeys

Array of texture keys.

| Improve this Doc View Source

SetDungeonTextures(Int32[])

Apply dungeon texture table.

Declaration
public void SetDungeonTextures(int[] dungeonTextureTable)
Parameters
Type Name Description
Int32[] dungeonTextureTable

Dungeon texture table changes to apply.

Extension Methods

MBExtensions.Invoke(MonoBehaviour, Action, Single)
MBExtensions.Invoke<T>(MonoBehaviour, Action<T>, T, Single)
MBExtensions.Invoke<T1, T2>(MonoBehaviour, Action<T1, T2>, T1, T2, Single)
MBExtensions.Invoke<T1, T2, T3>(MonoBehaviour, Action<T1, T2, T3>, T1, T2, T3, Single)
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX