You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After slicing the game object the original prefab holes are closed , the region is filled? i wanted to know if we can retain the original holes in the obj after slicing the game object ?
#43
Closed
fire53base opened this issue
May 15, 2021
· 3 comments
`using EzySlice;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Slice_Eg : MonoBehaviour
{
public GameObject plane1,plane2;
// Start is called before the first frame update
public GameObject objectToSlice; // non-null
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void slice_go_on_Click()
{
GameObject[] first_sliced = Slice(plane2.transform.position, plane2.transform.up);
}
/**
* Example on how to slice a GameObject in world coordinates.
*/
public GameObject[] Slice(Vector3 planeWorldPosition, Vector3 planeWorldDirection)
{
return objectToSlice.SliceInstantiate(planeWorldPosition, planeWorldDirection);
}
}
`
The text was updated successfully, but these errors were encountered:
`using EzySlice;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Slice_Eg : MonoBehaviour
{
public GameObject plane1,plane2;
// Start is called before the first frame update
public GameObject objectToSlice; // non-null
void Start()
{
}
`
The text was updated successfully, but these errors were encountered: