Skip to content

Commit

Permalink
more utm sources
Browse files Browse the repository at this point in the history
  • Loading branch information
marwie committed Aug 27, 2024
1 parent a9961a4 commit 7e82f84
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion documentation/.vuepress/components/sample.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default {
url.searchParams.append("hideClose", "");
url.searchParams.append("utm_source", "needle_docs");
url.searchParams.append("utm_content", currentUrl?.pathname || "");
url.searchParams.append("utm_content", "sample_embed");
this.sanitizedUrl = url.toString();
}
}
Expand Down
12 changes: 6 additions & 6 deletions documentation/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default defineUserConfig({
},
{
text: 'Pricing & Plans',
link: "https://needle.tools/pricing?utm_source=needle_docs"
link: "https://needle.tools/pricing?utm_source=needle_docs&utm_content=headersubnav"
},
{
text: "Releases and Changelog",
Expand Down Expand Up @@ -222,7 +222,7 @@ export default defineUserConfig({
children: [
{
text: "Samples for Download",
link: "https://engine.needle.tools/samples",
link: "https://engine.needle.tools/samples?utm_source=needle_docs&utm_content=headernav",
},
"/modules",
{
Expand All @@ -235,26 +235,26 @@ export default defineUserConfig({
},
{
text: 'Samples',
link: 'https://engine.needle.tools/samples',
link: 'https://engine.needle.tools/samples?utm_source=needle_docs&utm_content=headernav',
},
{
text: 'Pricing',
link: "https://needle.tools/pricing"
link: "https://needle.tools/pricing?utm_source=needle_docs&utm_content=headernav"
},
{
text: 'Contact',
children: [
{
text: 'Needle Website',
link: 'https://needle.tools'
link: 'https://needle.tools?utm_source=needle_docs&utm_content=headernav'
},
{
text: 'Github',
link: 'https://github.com/needle-tools/needle-engine-support'
},
{
text: 'Support Community',
link: 'https://forum.needle.tools'
link: 'https://forum.needle.tools?utm_source=needle_docs&utm_content=headernav'
},
{
text: 'Discord Server',
Expand Down
4 changes: 2 additions & 2 deletions documentation/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
Explore some real world applications, websites and demos made with Needle Engine.

<p align="left">
<a href="./documentation/getting-started.md">Get started now</a> • <a href="./documentation/vision.md">Learn more about our vision</a> • <a href="https://fwd.needle.tools/needle-engine/docs/features-overview">Features Overview</a> • <a href="https://docs.needle.tools/samples">Samples to download</a>
<a href="./documentation/getting-started.md">Get started now</a> • <a href="./documentation/vision.md">Learn more about our vision</a> • <a href="https://fwd.needle.tools/needle-engine/docs/features-overview">Features Overview</a> • <a href="https://docs.needle.tools/samples?utm_source=needle_docs">Samples to download</a>
</p>


## Needle Website
<a href="https://needle.tools" target="_blank">Visit Website</a> — by Needle
<a href="https://needle.tools?utm_source=needle_docs" target="_blank">Visit Website</a> — by Needle

https://user-images.githubusercontent.com/5083203/186126996-27b45c5f-f3b9-40f7-b8c7-6ecba1d25a6e.mp4

Expand Down
4 changes: 2 additions & 2 deletions documentation/export.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Be aware that this is preferred over disabling objects as disabled will still ge

### Lazy loading and multiple levels / scenes

If you want to split up your application into multiple levels or scenes then you can simply use the `SceneSwitcher` component. You can then structure your application into multiple scenes or prefabs and add them to the SceneSwitcher array to be loaded and unloaded at runtime. This is a great way to avoid having to load all your content upfront and to keep loading times small (for example it is what we did on [needle.tools](https://needle.tools) by separating each section of your website into its own scene and only loading them when necessary)
If you want to split up your application into multiple levels or scenes then you can simply use the `SceneSwitcher` component. You can then structure your application into multiple scenes or prefabs and add them to the SceneSwitcher array to be loaded and unloaded at runtime. This is a great way to avoid having to load all your content upfront and to keep loading times small (for example it is what we did on [needle.tools](https://needle.tools?utm_source=needle_docs&utm_content=export_scenes) by separating each section of your website into its own scene and only loading them when necessary)

### Recommended Complexity per glTF

Expand All @@ -50,7 +50,7 @@ To get started, create a component in Unity with a ``UnityEditor.SceneAsset`` fi

You can keep working inside a referenced scene and still update your main exporter scene/website. On scene save or play mode change we will detect if the current scene is being used by your currently running server and then trigger a re-export for only that glb. (This check is done by name - if a glb inside your ``<web_project>/assets/`` folder exists, it is exported again and the main scene reloads it.)

As an example on [our website](https://needle.tools) each section is setup as a separate scene and on export packed into multiple glb files that we load on demand:
As an example on [our website](https://needle.tools?utm_source=needle_docs&utm_content=export_sceneassets) each section is setup as a separate scene and on export packed into multiple glb files that we load on demand:

![2022-08-22-172605_Needle_Website_-_Website_-_Windows,_Mac,_Linux_-_U](https://user-images.githubusercontent.com/5083203/185958983-71913c97-5eec-4cfd-99f5-76798582373e.png)

Expand Down
2 changes: 1 addition & 1 deletion documentation/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ If loading time itself is an issue you can **try to split up your content into m

## My lightmaps look different / too bright

Ensure you're following [best practices for lightmaps](https://docs.needle.tools/lightmaps) and read about [mixing baked and non-baked objects](https://github.com/needle-tools/needle-engine-support/blob/main/documentation/export.md#mixing-baked-and-non-baked-objects)
Ensure you're following [best practices for lightmaps](https://docs.needle.tools/lightmaps?utm_source=needle_docs) and read about [mixing baked and non-baked objects](https://github.com/needle-tools/needle-engine-support/blob/main/documentation/export.md#mixing-baked-and-non-baked-objects)

## My scene is too bright / lighting looks different than in Unity
Make sure that your lights are set to "Baked" or "Realtime". "Mixed" is currently not supported.
Expand Down
6 changes: 3 additions & 3 deletions documentation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ footer: "Copyright © 2024 Needle Tools GmbH"

<div>Spent the last 2.5 months building this game, never built a game or used Unity before<br/>but absolutely loving the whole process. So rapid! — Matthew Pieri</div>

<div><a href="https://needle.tools">needle.tools</a> is a wonderful showcase of what Needle contributes to 3D via the web. I just love it. — Kevin Curry</div>
<div><a href="https://needle.tools?utm_source=needle_docs&utm_content=quote">needle.tools</a> is a wonderful showcase of what Needle contributes to 3D via the web. I just love it. — Kevin Curry</div>

<div>Played with this a bit this morning 🤯🤯 pretty magical — Brit Gardner</div>

Expand All @@ -40,10 +40,10 @@ footer: "Copyright © 2024 Needle Tools GmbH"
<action href="features-overview">
Features 🎨
</action>
<action href="https://engine.needle.tools/samples?utm_source=needle_docs">
<action href="https://engine.needle.tools/samples?utm_source=needle_docs&utm_content=actionbutton">
Samples 🎏
</action>
<action href="https://forum.needle.tools?utm_source=needle_docs">
<action href="https://forum.needle.tools?utm_source=needle_docs&utm_content=actionbutton">
Forum 💬
</action>
</actiongroup>
Expand Down
2 changes: 1 addition & 1 deletion documentation/scripting-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Below you will find a few basic scripts as a quick reference.

We also offer a lot of sample scenes and complete projects that you can download and use as a starting point:
- [Visit Samples Website](https://engine.needle.tools/samples)
- [Visit Samples Website](https://engine.needle.tools/samples?utm_source=needle_docs&utm_content=scripting_examples)
- [Download Samples Package](https://engine.needle.tools/downloads/unity/samples)
- [Needle Engine Stackblitz Collection](https://stackblitz.com/@marwie/collections/needle-engine)
- [Needle Engine API](https://engine.needle.tools/api)
Expand Down

0 comments on commit 7e82f84

Please sign in to comment.