add info |
add sync delegate updates |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
== Usage == | == Usage == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|TopBottomRotation|'''[[#Rotation|Rotation]]'''|TypeAdv0=true| How to Rotate the top and bottom images to fit. | |TopBottomRotation|'''[[#Rotation|CubemapCreator.Rotation]]'''|TypeAdv0=true| How to Rotate the top and bottom images to fit. | ||
|PosX|{{RootFieldType|AssetRef`1|[[Type:Texture2D|Texture2D]]}}|TypeAdv1=true| What to use for the positive X side. | |PosX|{{RootFieldType|AssetRef`1|[[Type:Texture2D|Texture2D]]}}|TypeAdv1=true| What to use for the positive X side. | ||
|NegX|{{RootFieldType|AssetRef`1|[[Type:Texture2D|Texture2D]]}}|TypeAdv2=true| What to use for the negative X side. | |NegX|{{RootFieldType|AssetRef`1|[[Type:Texture2D|Texture2D]]}}|TypeAdv2=true| What to use for the negative X side. | ||
Line 14: | Line 14: | ||
|PosZ|{{RootFieldType|AssetRef`1|[[Type:Texture2D|Texture2D]]}}|TypeAdv5=true| What to use for the top side. | |PosZ|{{RootFieldType|AssetRef`1|[[Type:Texture2D|Texture2D]]}}|TypeAdv5=true| What to use for the top side. | ||
|NegZ|{{RootFieldType|AssetRef`1|[[Type:Texture2D|Texture2D]]}}|TypeAdv6=true| What to use for the bottom side. | |NegZ|{{RootFieldType|AssetRef`1|[[Type:Texture2D|Texture2D]]}}|TypeAdv6=true| What to use for the bottom side. | ||
}} | |||
== Sync Delegates == | |||
{{Table ComponentTriggers | |||
|OnCreate:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Tells the creator to create the cubemap. | |||
}} | }} | ||
== Rotation == | == Rotation == | ||
{{Table EnumValues | {{Table EnumValues | ||
| | |Default|0| Rotate 0 degrees. | ||
| | |Rotate90CW|1| Rotate 90 degrees clockwise. | ||
| | |Rotate90CCW|2| Rotate 90 degrees counter clockwise. | ||
| | |Rotate180|3| Rotate 180 degrees. | ||
}} | }} | ||
Latest revision as of 20:33, 19 March 2025
Component image 
Cubemap Creator component as seen in the Scene Inspector

See Cubemap Creator.
Usage
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. Some components stop their functionality when this field is disabled, but some don't. |
TopBottomRotation
|
CubemapCreator.Rotation | How to Rotate the top and bottom images to fit. |
PosX
|
Texture2D | What to use for the positive X side. |
NegX
|
Texture2D | What to use for the negative X side. |
PosY
|
Texture2D | What to use for the positive Y side. |
NegY
|
Texture2D | What to use for the negative Y side. |
PosZ
|
Texture2D | What to use for the top side. |
NegZ
|
Texture2D | What to use for the bottom side. |
Sync Delegates
Method Name | Method type and Arguments. | Is the method hidden? | Description |
---|---|---|---|
OnCreate:ButtonEventHandler
|
ButtonEventHandler | ✓ | Tells the creator to create the cubemap. |
Rotation
Name | Value | Description |
---|---|---|
Default
|
0 | Rotate 0 degrees. |
Rotate90CW
|
1 | Rotate 90 degrees clockwise. |
Rotate90CCW
|
2 | Rotate 90 degrees counter clockwise. |
Rotate180
|
3 | Rotate 180 degrees. |
Usage
See Cubemap Creator.
Examples
See Cubemap Creator.