Show / Hide Table of Contents

Class DaggerfallBillboard

Inheritance
Object
Object
Component
Behaviour
MonoBehaviour
Billboard
DaggerfallBillboard
Inherited Members
Billboard.summary
Billboard.Summary
Namespace: DaggerfallWorkshop
Assembly: Assembly-CSharp.dll
Syntax
[RequireComponent(typeof(MeshFilter))]
[RequireComponent(typeof(MeshRenderer))]
public class DaggerfallBillboard : Billboard

Fields

| Improve this Doc View Source

customArchive

Declaration
public int customArchive
Field Value
Type Description
Int32
| Improve this Doc View Source

customRecord

Declaration
public int customRecord
Field Value
Type Description
Int32

Properties

| Improve this Doc View Source

FaceY

Declaration
public override bool FaceY { get; set; }
Property Value
Type Description
Boolean
Overrides
Billboard.FaceY
| Improve this Doc View Source

FramesPerSecond

Declaration
public override int FramesPerSecond { get; set; }
Property Value
Type Description
Int32
Overrides
Billboard.FramesPerSecond
| Improve this Doc View Source

OneShot

Declaration
public override bool OneShot { get; set; }
Property Value
Type Description
Boolean
Overrides
Billboard.OneShot

Methods

| Improve this Doc View Source

AlignToBase()

Aligns billboard to centre of base, rather than exact centre. Must have already set material using SetMaterial() for billboard dimensions to be known.

Declaration
public override void AlignToBase()
Overrides
Billboard.AlignToBase()
| Improve this Doc View Source

SetMaterial(Int32, Int32, Int32)

Sets new Daggerfall material and recreates mesh. Will use an atlas if specified in DaggerfallUnity singleton.

Declaration
public override Material SetMaterial(int archive, int record, int frame = 0)
Parameters
Type Name Description
Int32 archive

Texture archive index.

Int32 record

Texture record index.

Int32 frame

Frame index.

Returns
Type Description
Material

Material.

Overrides
Billboard.SetMaterial(Int32, Int32, Int32)
| Improve this Doc View Source

SetMaterial(Texture2D, Vector2, Boolean)

Sets billboard material with a custom texture.

Declaration
public override Material SetMaterial(Texture2D texture, Vector2 size, bool isLightArchive = false)
Parameters
Type Name Description
Texture2D texture

Texture2D to set on material.

Vector2 size

Size of billboard quad in normal units (not Daggerfall units).

Boolean isLightArchive
Returns
Type Description
Material

Material.

Overrides
Billboard.SetMaterial(Texture2D, Vector2, Boolean)
| Improve this Doc View Source

SetRDBResourceData(DFBlock.RdbFlatResource)

Sets extended data about billboard from RDB flat resource data.

Declaration
public override void SetRDBResourceData(DFBlock.RdbFlatResource resource)
Parameters
Type Name Description
DFBlock.RdbFlatResource resource
Overrides
Billboard.SetRDBResourceData(DFBlock.RdbFlatResource)
| Improve this Doc View Source

SetRMBPeopleData(DFBlock.RmbBlockPeopleRecord)

Sets extended data about people billboard from RMB resource data.

Declaration
public override void SetRMBPeopleData(DFBlock.RmbBlockPeopleRecord person)
Parameters
Type Name Description
DFBlock.RmbBlockPeopleRecord person
Overrides
Billboard.SetRMBPeopleData(DFBlock.RmbBlockPeopleRecord)
| Improve this Doc View Source

SetRMBPeopleData(Int32, Int32, Int64)

Sets people data directly.

Declaration
public override void SetRMBPeopleData(int factionID, int flags, long position = 0L)
Parameters
Type Name Description
Int32 factionID

FactionID of person.

Int32 flags

Person flags.

Int64 position
Overrides
Billboard.SetRMBPeopleData(Int32, Int32, Int64)

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
  • Fields
    • customArchive
    • customRecord
  • Properties
    • FaceY
    • FramesPerSecond
    • OneShot
  • Methods
    • AlignToBase()
    • SetMaterial(Int32, Int32, Int32)
    • SetMaterial(Texture2D, Vector2, Boolean)
    • SetRDBResourceData(DFBlock.RdbFlatResource)
    • SetRMBPeopleData(DFBlock.RmbBlockPeopleRecord)
    • SetRMBPeopleData(Int32, Int32, Int64)
  • Extension Methods
Back to top Generated by DocFX