Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Spawning Controller Prefab with Matched Spline Prefab Using Pool Manager
Post: RE: Spawning Controller Prefab with Matched Spline...
It is hard to understand your reply. Because i'm not very good with English :blush: . But as i understand it, i did some changes. Instead of using prefab splines, I created a GameObject named Splines ... |
|
Kerkenez |
Curvy Splines - support forum
|
10 |
17,132 |
03-29-2016, 08:19 PM |
|
|
Thread: Spawning Controller Prefab with Matched Spline Prefab Using Pool Manager
Post: RE: Spawning Controller Prefab with Matched Spline...
Guess what happened. Enemy spaceships which are attached to the controller doesn't appear on mobile. I mean i can't see any ships. But there is no problem with testing on computer. Also i've tried wi... |
|
Kerkenez |
Curvy Splines - support forum
|
10 |
17,132 |
03-27-2016, 12:08 AM |
|
|
Thread: Spawning Controller Prefab with Matched Spline Prefab Using Pool Manager
Post: RE: Spawning Controller Prefab with Matched Spline...
Ok done. Thank you for your help. I've done with two lines of code:
Code:
--
PoolManager.Pools["EnemyPool"].Spawn(enemy).GetComponent().Spline = curvySpline;
curvySpline.Refresh();
--
|
|
Kerkenez |
Curvy Splines - support forum
|
10 |
17,132 |
03-26-2016, 09:27 PM |
|
|
Thread: Spawning Controller Prefab with Matched Spline Prefab Using Pool Manager
Post: RE: Spawning Controller Prefab with Matched Spline...
Ok, using instantiate() instead of pool manager has worked. But i want to use pool manager.
[hr]
When i use pool manager, i get this error at the beginning.
IndexOutOfRangeException: Array index is... |
|
Kerkenez |
Curvy Splines - support forum
|
10 |
17,132 |
03-26-2016, 11:26 AM |
|
|
Thread: Spawning Controller Prefab with Matched Spline Prefab Using Pool Manager
Post: RE: Spawning Controller Prefab with Matched Spline...
I did some changes and it worked but not with my way. I'm working on it. |
|
Kerkenez |
Curvy Splines - support forum
|
10 |
17,132 |
03-26-2016, 10:52 AM |
|
|
Thread: Spawning Controller Prefab with Matched Spline Prefab Using Pool Manager
Post: RE: Spawning Controller Prefab with Matched Spline...
Also these are Curvy Spline and trigger scripts:
Code:
--
using UnityEngine;
using System.Collections;
using PathologicalGames;
using FluffyUnderware.Curvy.Controllers;
public class TriggerScript :... |
|
Kerkenez |
Curvy Splines - support forum
|
10 |
17,132 |
03-25-2016, 09:36 PM |
|
|
Thread: Spawning Controller Prefab with Matched Spline Prefab Using Pool Manager
Post: RE: Spawning Controller Prefab with Matched Spline...
I've tried to call Play() method and didn't work. This is Controller(Clone)001 and 2,3,4,5, ... at Runtime:
http://i.hizliresim.com/kBO50v.jpg (http://hizliresim.com/kBO50v)
[url=http://hizliresim.... |
|
Kerkenez |
Curvy Splines - support forum
|
10 |
17,132 |
03-23-2016, 06:07 PM |
|
|
Thread: Spawning Controller Prefab with Matched Spline Prefab Using Pool Manager
Post: Spawning Controller Prefab with Matched Spline Pre...
I have a spline and a controller prefabs. Controller has a Spline Controller Script and a spaceship prefab. Spline Controller has a Spline to follow. I'm using a pool manager to spawn-despawn Controll... |
|
Kerkenez |
Curvy Splines - support forum
|
10 |
17,132 |
03-20-2016, 09:14 PM |