Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public static class SpaceObjects
- {
- public static GameObject CreateSphereObject(string name, Vector3 position, Transform parent = null){
- GameObject sphere = GameObject.CreatePrimitive(PrimitiveType.Sphere);
- sphere.name = name;
- sphere.transform.position = position;
- sphere.transform.parent = parent;
- return sphere;
- }
- }
- /*
- Copyright Shadowplay Coding 2021 - see www.shadowplaycoding.com for licensing details
- Removing this comment forfits any rights given to the user under licensing.
- */
Add Comment
Please, Sign In to add comment