Falco Engine 3.9.0.1 (beta)
Prefab.cs
Go to the documentation of this file.
1using System;
2using System.Runtime.CompilerServices;
3using System.Runtime.InteropServices;
4
5namespace FalcoEngine
6{
7 public class Prefab : Asset
8 {
9 internal Prefab() { }
10
16 {
17 Vector3 pos = Vector3.zero;
19
20 return INTERNAL_instantiate(ref pos, ref rot);
21 }
22
29 {
31
32 return INTERNAL_instantiate(ref position, ref rot);
33 }
34
41 public GameObject Instantiate(Vector3 position, Quaternion rotation)
42 {
43 return INTERNAL_instantiate(ref position, ref rotation);
44 }
45
46 [MethodImpl(MethodImplOptions.InternalCall)]
47 private extern GameObject INTERNAL_instantiate(ref Vector3 position, ref Quaternion rotation);
48 }
49}
GameObject Instantiate()
Create game object from this prefab
Definition: Prefab.cs:15
GameObject Instantiate(Vector3 position)
Create game object from this prefab
Definition: Prefab.cs:28
GameObject Instantiate(Vector3 position, Quaternion rotation)
Create game object from this prefab
Definition: Prefab.cs:41
static Quaternion identity
Definition: Quaternion.cs:15
static Vector3 zero
Definition: Vector3.cs:67