SpawnModule
public class SpawnModule : Module3DBase, ITextStudio3DOutgoingHandoffModuleSpawns pooled objects at generated glyph positions after mesh assembly.
Fields
Section titled “Fields”
MaximumInstanceCount
Section titled “MaximumInstanceCount”public const int MaximumInstanceCount = 256Returns
System.Int32
Methods
Section titled “Methods”
OnAttach(TextStudio3DText)
Section titled “OnAttach(TextStudio3DText)”public override void OnAttach(TextStudio3DText host)Called once when the module is first attached to a 3D text component.
Parameters
| Name | Type |
|---|---|
host |
TextStudio.ThreeD.TextStudio3DText |
OnDetach(TextStudio3DText)
Section titled “OnDetach(TextStudio3DText)”public override void OnDetach(TextStudio3DText host)Called when the module is removed from a 3D text component.
Parameters
| Name | Type |
|---|---|
host |
TextStudio.ThreeD.TextStudio3DText |
PostMeshAssembly(ModuleContext)
Section titled “PostMeshAssembly(ModuleContext)”public override void PostMeshAssembly(ModuleContext context)Called after mesh assembly. Use to apply final mesh modifications.
Parameters
| Name | Type |
|---|---|
context |
TextStudio.ThreeD.ModuleContext |
UpdateVisual(in TextStudio3DVisualModuleContext)
Section titled “UpdateVisual(in TextStudio3DVisualModuleContext)”public override void UpdateVisual(in TextStudio3DVisualModuleContext context)Observes final animated glyph state after the renderer has applied the frame.
Parameters
| Name | Type |
|---|---|
context |
TextStudio.ThreeD.TextStudio3DVisualModuleContext |
OnInactive(TextStudio3DText)
Section titled “OnInactive(TextStudio3DText)”public override void OnInactive(TextStudio3DText host)Called after assembly when an attached post-assembly module is disabled. Lifecycle modules can use this to hide or return previously created output without destroying pools.
Parameters
| Name | Type |
|---|---|
host |
TextStudio.ThreeD.TextStudio3DText |
CanHandleOutgoingHandoff(TextStudio3DText)
Section titled “CanHandleOutgoingHandoff(TextStudio3DText)”public bool CanHandleOutgoingHandoff(TextStudio3DText host)Returns whether this module can spawn outgoing-handoff effects for the supplied host.
Parameters
| Name | Type |
|---|---|
host |
TextStudio.ThreeD.TextStudio3DText |
Returns
System.Boolean
TryHandleOutgoingHandoff(in TextStudio3DOutgoingHandoffContext)
Section titled “TryHandleOutgoingHandoff(in TextStudio3DOutgoingHandoffContext)”public bool TryHandleOutgoingHandoff(in TextStudio3DOutgoingHandoffContext context)Spawns the configured effects for glyphs participating in an outgoing text handoff.
Parameters
| Name | Type |
|---|---|
context |
TextStudio.ThreeD.TextStudio3DOutgoingHandoffContext |
Returns
System.Boolean
Constructors
Section titled “Constructors”
SpawnModule()
Section titled “SpawnModule()”public SpawnModule()Properties
Section titled “Properties”
Prefab
Section titled “Prefab”public GameObject Prefab { get; }Returns
UnityEngine.GameObject
Triggers
Section titled “Triggers”public TextStudio3DSpawnTrigger Triggers { get; }Returns
TextStudio.ThreeD.TextStudio3DSpawnTrigger
Socket
Section titled “Socket”public TextStudio3DSocketKind Socket { get; }Returns
TextStudio.ThreeD.TextStudio3DSocketKind
NamedSocket
Section titled “NamedSocket”public string NamedSocket { get; }Returns
System.String
Attachment
Section titled “Attachment”public TextStudio3DSpawnAttachment Attachment { get; }Returns
TextStudio.ThreeD.TextStudio3DSpawnAttachment
SpawnDelay
Section titled “SpawnDelay”public float SpawnDelay { get; }Returns
System.Single
Lifetime
Section titled “Lifetime”public float Lifetime { get; }Returns
System.Single
ParentToText
Section titled “ParentToText”public bool ParentToText { get; }Returns
System.Boolean
MaxInstances
Section titled “MaxInstances”public int MaxInstances { get; }Returns
System.Int32
LocalOffset
Section titled “LocalOffset”public Vector3 LocalOffset { get; }Returns
UnityEngine.Vector3
LocalRotation
Section titled “LocalRotation”public Quaternion LocalRotation { get; }Returns
UnityEngine.Quaternion
LocalScale
Section titled “LocalScale”public Vector3 LocalScale { get; }Returns
UnityEngine.Vector3
ExecutionStages
Section titled “ExecutionStages”public override ModuleExecutionStage ExecutionStages { get; }Pipeline callbacks used by this module. Typed capability interfaces infer their exact stages; modules using raw callbacks must override this property explicitly.
Returns
TextStudio.ThreeD.ModuleExecutionStage
RequiresUncachedGeometry
Section titled “RequiresUncachedGeometry”public override bool RequiresUncachedGeometry { get; }Whether this module needs isolated glyph geometry instead of shared cached buffers. Contour and post-geometry modules normally do; lifecycle-only modules normally do not.
Returns
System.Boolean
public override TextStudio3DModuleRole Roles { get; }Returns
TextStudio.ThreeD.TextStudio3DModuleRole
RequiredMeshChannels
Section titled “RequiredMeshChannels”public override TextStudio3DMeshChannels RequiredMeshChannels { get; }Returns
TextStudio.ThreeD.TextStudio3DMeshChannels
BoundsBehavior
Section titled “BoundsBehavior”public override TextStudio3DBoundsBehavior BoundsBehavior { get; }Returns
TextStudio.ThreeD.TextStudio3DBoundsBehavior
GeometryImpact
Section titled “GeometryImpact”public override TextStudio3DGeometryImpact GeometryImpact { get; }Returns
TextStudio.ThreeD.TextStudio3DGeometryImpact