Show / Hide Table of Contents

Class Billboard

Inheritance
Object
Object
Component
Behaviour
MonoBehaviour
Billboard
DaggerfallBillboard
Namespace: DaggerfallWorkshop
Assembly: Assembly-CSharp.dll
Syntax
public abstract class Billboard : MonoBehaviour

Fields

| Improve this Doc View Source

summary

Declaration
[SerializeField]
protected BillboardSummary summary
Field Value
Type Description
BillboardSummary

Properties

| Improve this Doc View Source

FaceY

Billboard should also face camera up/down

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

FramesPerSecond

General frames per second for animation

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

OneShot

Plays animation once then destroys GameObject

Declaration
public abstract bool OneShot { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Summary

Declaration
public BillboardSummary Summary { get; }
Property Value
Type Description
BillboardSummary

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 abstract void 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 abstract 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.

| Improve this Doc View Source

SetMaterial(Texture2D, Vector2, Boolean)

Sets billboard material with a custom texture.

Declaration
public abstract 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.

| Improve this Doc View Source

SetRDBResourceData(DFBlock.RdbFlatResource)

Sets extended data about billboard from RDB flat resource data.

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

SetRMBPeopleData(DFBlock.RmbBlockPeopleRecord)

Sets extended data about people billboard from RMB resource data.

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

SetRMBPeopleData(Int32, Int32, Int64)

Sets people data directly.

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

FactionID of person.

Int32 flags

Person flags.

Int64 position

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