2023-04-23 18:46:03 -07:00

25 lines
934 B
XML

<vnscene name="ExampleScene">
<item ref="cube" prefab="prefabs/SimpleSpinningCubePrefab" />
<events>
<!-- Set the default values -->
<position item="cube" x="0" y="0" z="10" />
<set property="cube->material->color" value="COLOR_BLACK" type="struct Color" />
<set property="cube->material->color.a" value="0" type="uint8_t" />
<!-- Fade out the black overlay -->
<set property="cube->material->color.a" from="1" to="0" duration="1" curve="easeOut" type="uint8_t" />
<!-- Example Text, also showing how in future we can support multiple languages -->
<text character="eth">
<string lang="en">Hi, I'm Ethereality.</string>
</text>
<!-- Fade in craig -->
<set property="cube->material->color.a" from="0" to="1" duration="1" curve="easeOut" type="uint8_t" />
<text character="craig">
<string lang="en">Hi, I'm Craig.</string>
</text>
</events>
</vnscene>