Class DaggerfallBillboard
Namespace: DaggerfallWorkshop
Assembly: Assembly-CSharp.dll
Syntax
[RequireComponent(typeof(MeshFilter))]
[RequireComponent(typeof(MeshRenderer))]
public class DaggerfallBillboard : Billboard
Fields
| Improve this Doc View SourcecustomArchive
Declaration
public int customArchive
Field Value
Type | Description |
---|---|
Int32 |
customRecord
Declaration
public int customRecord
Field Value
Type | Description |
---|---|
Int32 |
Properties
| Improve this Doc View SourceFaceY
Declaration
public override bool FaceY { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceFramesPerSecond
Declaration
public override int FramesPerSecond { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Overrides
| Improve this Doc View SourceOneShot
Declaration
public override bool OneShot { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
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 override void AlignToBase()
Overrides
| Improve this Doc View SourceSetMaterial(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
| Improve this Doc View SourceSetMaterial(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
| Improve this Doc View SourceSetRDBResourceData(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
| Improve this Doc View SourceSetRMBPeopleData(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
| Improve this Doc View SourceSetRMBPeopleData(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 |