korimeily
NNormal
•Created by korimeily on 4/10/2024 in #🤝ask-a-question
the easiest way to check synchronized of transform object
why is the timeline not synchronized? @Normcore Assistant
20 replies
NNormal
•Created by korimeily on 4/10/2024 in #🤝ask-a-question
the easiest way to check synchronized of transform object
I've already added the class StopwatchModel but it shows this error again. @Normcore Assistant
20 replies
NNormal
•Created by korimeily on 4/10/2024 in #🤝ask-a-question
the easiest way to check synchronized of transform object
The type 'StopwatchModel' cannot be used as type parameter 'TModel' in the generic type or method 'RealtimeComponent<TModel>'. There is no implicit reference conversion from 'StopwatchModel' to 'Normal.Realtime.RealtimeModel'. @Normcore Assistant
20 replies
NNormal
•Created by korimeily on 4/5/2024 in #🤝ask-a-question
How to disable and enable the prefab with normcore
add remove index at 0 after finished loop @Normcore Assistant
88 replies
NNormal
•Created by korimeily on 4/5/2024 in #🤝ask-a-question
How to disable and enable the prefab with normcore
change for each to for, please? @Normcore Assistant
88 replies
NNormal
•Created by korimeily on 4/5/2024 in #🤝ask-a-question
How to disable and enable the prefab with normcore
@Normcore Assistant not add component but set request ownership
88 replies
NNormal
•Created by korimeily on 4/5/2024 in #🤝ask-a-question
How to disable and enable the prefab with normcore
the easiest way to set realtime transform and realtime view in object in the list @Normcore Assistant
88 replies
NNormal
•Created by korimeily on 4/5/2024 in #🤝ask-a-question
How to disable and enable the prefab with normcore
Sorry for my bad English. I want the shark objects in the list(each element) to come out if click the UI button ex. when click the button it will setactive shark obj(element0). How should I do with the RequestOwnership? @Mechabit
88 replies
NNormal
•Created by korimeily on 4/5/2024 in #🤝ask-a-question
How to disable and enable the prefab with normcore
@Mechabit
88 replies
NNormal
•Created by korimeily on 4/5/2024 in #🤝ask-a-question
How to disable and enable the prefab with normcore
88 replies
NNormal
•Created by korimeily on 4/5/2024 in #🤝ask-a-question
How to disable and enable the prefab with normcore
@Mechabit
88 replies
NNormal
•Created by korimeily on 4/5/2024 in #🤝ask-a-question
How to disable and enable the prefab with normcore
here is my code. If I made a mistake somewhere, please tell me.
88 replies
NNormal
•Created by korimeily on 4/5/2024 in #🤝ask-a-question
How to disable and enable the prefab with normcore
public class CustomComponent : RealtimeComponent<CustomModel>
{
public List<GameObject> shark = new List<GameObject>();
public void Shark()
{
for (var i = 0; i < shark.Count; i++)
{
shark[0].SetActive(true);
break;
}
shark.RemoveAt(0);
}
protected override void OnRealtimeModelReplaced(CustomModel previousModel, CustomModel currentModel)
{
if (previousModel != null)
{
// Unsubscribe from events on the previous model
previousModel.setActiveDidChange -= SetActiveDidChange;
}
if (currentModel != null)
{
// Subscribe to events on the new model
currentModel.setActiveDidChange += SetActiveDidChange;
// Set the initial active state of the GameObject
gameObject.SetActive(currentModel.setActive);
}
}
private void SetActiveDidChange(CustomModel model, bool value)
{
// Update the active state of the GameObject when the model changes
gameObject.SetActive(true);
}
88 replies
NNormal
•Created by korimeily on 4/5/2024 in #🤝ask-a-question
How to disable and enable the prefab with normcore
I follow the steps but it doesn't work🥹 🥹 My parent obj is inactive when I run the program and another player can't see the child obj.
88 replies
NNormal
•Created by korimeily on 4/5/2024 in #🤝ask-a-question
How to disable and enable the prefab with normcore
thank you very much🥹
88 replies
NNormal
•Created by korimeily on 4/5/2024 in #🤝ask-a-question
How to disable and enable the prefab with normcore
How should I do? @Mechabit
88 replies
NNormal
•Created by korimeily on 4/5/2024 in #🤝ask-a-question
How to disable and enable the prefab with normcore
@Mechabit
88 replies
NNormal
•Created by korimeily on 4/5/2024 in #🤝ask-a-question
How to disable and enable the prefab with normcore
88 replies
NNormal
•Created by korimeily on 4/5/2024 in #🤝ask-a-question
How to disable and enable the prefab with normcore
I've already have my prefabs in the scene game but setfalse. I'd like to set active each prefab when click the button then it setactive. How do I synchronizes?
@Normcore Assistant
88 replies
NNormal
•Created by korimeily on 4/5/2024 in #🤝ask-a-question
How to disable and enable the prefab with normcore
@Normcore Assistant
88 replies