You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
943 B
C#
31 lines
943 B
C#
// 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 |