Skip to content

Instantly share code, notes, and snippets.

かせ PhantomIsland-kase

Block or report user

Report or block PhantomIsland-kase

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:608ce520ac335f1b5660d83312588348
public class SamplePrefab : MonoBehaviour
{
public Func<GameObject> Generator
{
get{ return () => Instantiate(this); }
}
}
public class SampleClass : MonoBehaviour
{
View gist:83b9e789847c48e35aebaf348fcf3e98
[SerializeField]
SamplePrefab prefab;
void Awake()
{
var instance = Instantiate(prefab);
}
You can’t perform that action at this time.