DecalFramework Reference |
DecalCreator.CreateDecalMesh (Frameshift.Decal.DecalType, UnityEngine.Vector3, UnityEngine.Vector3, UnityEngine.Collider()) Method |
See Also Example |
Create Decal mesh from colliders array.
Namespace:
Frameshift.Decal
Assembly: Frameshift.Decal (in Frameshift.Decal.dll)
Syntax
C# |
---|
public static Mesh CreateDecalMesh( |
Parameters
- decalType
-
Type of Decal that will be created.
- point
-
Point in world space where Decal will be calculated.
- forward
-
Direction of decal. Usually -hit.normal.
- colliders
-
Array colliders for which are trying to create decal.
Return Value
Decal mesh in world space.Example
Copy Code | |
---|---|
//Find colliders near raycast hit point |
Platforms
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.