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

TurretAuthoring does not add URPMaterialPropertyBaseColor component #263

Open
sijoonlee opened this issue Jun 21, 2023 · 0 comments
Open

Comments

@sijoonlee
Copy link

sijoonlee commented Jun 21, 2023

TurretAspect is looking for Turret + URPMaterialPropertyBaseColor component like below

readonly RefRO<Turret> m_Turret;
// Used in Step 8. Making this Optional means instances of the aspect
// can represent entities which do not have this component.
readonly RefRO<URPMaterialPropertyBaseColor> m_BaseColor;

However, URPMaterialPropertyBaseColor's not added here

AddComponent(entity, new Turret
{
CannonBallPrefab = GetEntity(authoring.CannonBallPrefab, TransformUsageFlags.Dynamic),
CannonBallSpawn = GetEntity(authoring.CannonBallSpawn, TransformUsageFlags.Dynamic)
});
AddComponent<Shooting>(entity);

I am new to this, please correct me if I am wrong

@sijoonlee sijoonlee changed the title Turret does not have URPMaterialPropertyBaseColor TurretAuthoring does not add URPMaterialPropertyBaseColor component Jun 21, 2023
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