Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the decal asset at runtime #12

Open
vikrrd opened this issue Mar 18, 2021 · 0 comments
Open

Changing the decal asset at runtime #12

vikrrd opened this issue Mar 18, 2021 · 0 comments

Comments

@vikrrd
Copy link

vikrrd commented Mar 18, 2021

Hi, I am trying to change the decal asset at runtime through a button click. Following is the code snippet.

using UnityEngine;
using SamDriver.Decal;

public class DecalChanger : MonoBehaviour
{
    public DecalMesh decalMesh;
    public DecalAsset decal;

    public void ChangeDecal()
    {
        decalMesh.DecalAsset = decal;
    }
}

This works completely fine in the editor. However, it is not, after taking the build to iOS. Any help would be appreciated.

I am using Unity 2019.4.10f1, Xcode 12.4, iPad 8th gen, iPad OS 14.4, Mac OS Big Sur 11.2.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant