Component:DocumentPageTexture: Difference between revisions

From Resonite Wiki
Automated: update Categories, SyncDelegates
update
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages></languages>
<translate>
{{Infobox Component
{{Infobox Component
|Image=DocumentPageTextureComponent.png
|Image=DocumentPageTextureComponent.png
|Name=Document Page Texture
|Name=Document Page Texture
}}
}}
The '''DocumentPageTexture''' component generates texture data using a document file like a PDF which can be displayed using a [[material]] in a [[Component:MeshRenderer]] or [[UIX]].


== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|HighPriorityIntegration|Bool|{{Asset HighPriorityIntegration Field}}
|HighPriorityIntegration|Bool|{{Asset HighPriorityIntegration Field}}
|FilterMode|TextureFilterMode|
|FilterMode|TextureFilterMode| {{Template:Texture FilterMode Field}}
|AnisotropicLevel|Int|
|AnisotropicLevel|Int| {{Template:Texture AnisotropicLevel Field}}
|WrapModeU|TextureWrapMode|
|WrapModeU|TextureWrapMode| {{Template:Texture WrapMode Field|X}}
|WrapModeV|TextureWrapMode|
|WrapModeV|TextureWrapMode| {{Template:Texture WrapMode Field|Y}}
|MipmapBias|Float|
|MipmapBias|Float| {{Template:Texture MipmapBias Field}}
|Profile|ColorProfile|
|Profile|ColorProfile| {{Template:Texture Profile Field}}
|Size|Int|
|Size|Int| {{Template:ProceduralTexture Size Field}}
|Mipmaps|Bool|
|Mipmaps|Bool| Whether to use mip maps or not.
|Document|{{RootFieldType|AssetRef`1|[[Type:Document|Document]]}}|TypeAdv9=true|
|Document|{{RootFieldType|AssetRef`1|[[Type:Document|Document]]}}|TypeAdv9=true| The document to display using this texture.
|PageIndex|Int|
|PageIndex|Int| The page in <code>Document</code> to display as the texture data.
|PageRegion|Rect|
|PageRegion|Rect| The area of the in <code>Document</code> to display on page <code>PageIndex</code>
}}
}}


== Sync Delegates ==
== Sync Delegates ==
{{Table ComponentTriggers
{{Table ComponentTriggers
|BakeTexture()|[[Type:Action|Action]]|
|BakeTexture()|[[Type:Action|Action]]| {{Template:BakeTexture Sync Method}}
}}
}}


== Usage ==
This component is auto generated as part of a document viewer when importing PDF files. Simply import a PDF file into the game to generate a viewer that uses this component as part of how it works.


== Examples ==
{{stub}}
== See Also ==
* [[Type:Document]]
</translate>
[[Category:Components:Assets:Procedural Textures{{#translation:}}|Document Page Texture]]
[[Category:Components:Assets:Procedural Textures{{#translation:}}|Document Page Texture]]
[[Category:Components{{#translation:}}|Document Page Texture]]
[[Category:Components{{#translation:}}|Document Page Texture]]
[[Category:ComponentStub]]
[[Category:ComponentStubs]]

Latest revision as of 04:17, 23 December 2024

Component image 
Document Page Texture component as seen in the Scene Inspector

The DocumentPageTexture component generates texture data using a document file like a PDF which can be displayed using a material in a Component:MeshRenderer or UIX.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
HighPriorityIntegration Bool If true, integrating this asset (e.g. processing procedural assets) gets higher priority than assets with this flag off. An example is user laser procedural meshes.
FilterMode TextureFilterMode How to handle the interpolation between pixels.
AnisotropicLevel Int The levels of Anisotropic filtering distances when using Anisotropic for FilterMode
WrapModeU TextureWrapMode How to repeat or mirror the texture along the X axis. this goes into affect when X values are outside of the range [0.0 to 1.0].
WrapModeV TextureWrapMode How to repeat or mirror the texture along the Y axis. this goes into affect when Y values are outside of the range [0.0 to 1.0].
MipmapBias Float Whether to see lower resolution versions of the texture closer up or not (MipMaps).
Profile ColorProfile The color profile to use for this texture's rendering.
Size Int The size of the procedural texture in pixels.
Mipmaps Bool Whether to use mip maps or not.
Document Document The document to display using this texture.
PageIndex Int The page in Document to display as the texture data.
PageRegion Rect The area of the in Document to display on page PageIndex

Sync Delegates

Triggers
Method Name Method type and Arguments. Description
BakeTexture() Action BakeTexture first generates a Component:StaticTexture2D that is the same as this procedural texture. The resulting static texture replaces every reference to the original procedural texture. Lastly the original procedural texture is deleted.

Usage

This component is auto generated as part of a document viewer when importing PDF files. Simply import a PDF file into the game to generate a viewer that uses this component as part of how it works.

Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.


See Also