This commit is contained in:
2025-06-16 15:24:27 +02:00
commit 83a46b2fc4
1452 changed files with 214261 additions and 0 deletions

View File

@ -0,0 +1,31 @@
// This should be editor only
#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace ParrelSync.Example
{
public class CustomArgumentExample : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
// Is this editor instance running a clone project?
if (ClonesManager.IsClone())
{
Debug.Log("This is a clone project.");
//Argument can be set from the clones manager window.
string customArgument = ClonesManager.GetArgument();
Debug.Log("The custom argument of this clone project is: " + customArgument);
// Do what ever you need with the argument string.
}
else
{
Debug.Log("This is the original project.");
}
}
}
}
#endif

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 346d302ecc25a9a41b48b857ce51d873
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: