Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can Curve Spline be used for an in game level editor.
#13
(05-04-2023, 12:43 PM)Lupos Wrote: What does includeOnRequestProcessing do since I seem to require this to have GetModule work.
Here is the documentation for that method:
https://api.curvyeditor.com/860/FluffyUn...m_Boolean_
The parameter means whether the method should also return modules that implement the IOnRequestProcessing interface. These modules have their inner workings different than other modules. "Normal" modules do their computation every time (when dirty) the generator is refreshed. IOnRequestProcessing modules do their computation only when requested by other modules.
The current list of such modules is:
  • ConformPath
  • InputSplinePath
  • InputSplineShape
  • ModifierMixPaths
  • ModifierMixShapes
  • ModifierPathRelativeTranslation
  • ModifierTRSPath
  • ModifierTRSShape
  • ModifierVariableMixShapes

For simplicity sake, you can always set that parameter to true.

(05-04-2023, 12:43 PM)Lupos Wrote: Edit* You said to modify the Destroy method in the CGMeshResourceLoader to add the custom scripts I needed. I'm having trouble allowing it to give access to my own namespace/scripts.
 
It is probably because you are using Curvy Splines with amsdef files. If so, short answer would be: remove the asmdef files in the ToolBuddy folder (recursively). The long answer would be: you need reference your code in the Curvy asmdef. More information here: https://docs.unity3d.com/Manual/ScriptCo...Files.html

(05-04-2023, 12:43 PM)Lupos Wrote: Also if I'm to believe, I'll have to add every custom script I'd need these meshes to use into this right? Is there not an easier way to allow an entire prefab + its children to load into the Generator?
You can use whatever code you need in CGMeshResourceLoader.Destroy to specify what components to ignore. You can access obj.gameObject, and customize the stripping depending on the object. For example using Unity's tags.
Please consider leaving a review for Curvy Splines, this helps immensely. Thank you.
Reply


Messages In This Thread
RE: Can Curve Spline be used for an in game level editor. - by _Aka_ - 05-04-2023, 09:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Spline Spots from 2 samples. BitBlit 8 655 06-30-2026, 11:49 AM
Last Post: _Aka_
  Best way to duplicate a spline with an offset Kapistijn 8 2,068 04-12-2026, 03:18 PM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 867 11-13-2025, 11:32 AM
Last Post: _Aka_
  Create Game Object Renaming Options rickgplus 1 1,105 09-23-2025, 09:33 AM
Last Post: _Aka_

Forum Jump: