Class Billboard
Namespace: DaggerfallWorkshop
Assembly: Assembly-CSharp.dll
Syntax
public abstract class Billboard : MonoBehaviour
Fields
| Improve this Doc View Sourcesummary
Declaration
[SerializeField]
protected BillboardSummary summary
Field Value
Type | Description |
---|---|
BillboardSummary |
Properties
| Improve this Doc View SourceFaceY
Billboard should also face camera up/down
Declaration
public abstract bool FaceY { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
FramesPerSecond
General frames per second for animation
Declaration
public abstract int FramesPerSecond { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
OneShot
Plays animation once then destroys GameObject
Declaration
public abstract bool OneShot { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Summary
Declaration
public BillboardSummary Summary { get; }
Property Value
Type | Description |
---|---|
BillboardSummary |
Methods
| Improve this Doc View SourceAlignToBase()
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()
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. |
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. |
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 |
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 |
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 |